The reason why the IsPinned
property is not respected in this scenario is that with the current implementation, the local value of the property which is set in code-behind takes precedence over the value provided in the style.
To solve this, you can either use the approach suggested in this thread
or set up a multi-binding for the IsPinned
Please let me know if you find any of these approaches applicable.
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin
, a suite of polished and feature-rich components for the Xamarin framework, which allow
you to write beautiful native mobile apps using a single shared C# codebase.