In some scenarios, I hope that some of the icons I set will not follow the global theme changes. How can I do this?
For example, I use Button in the code.
 <ar:Button ImageSourceSmall="{Binding Icon}"/>
How to make my Icon not change dynamically?
In some scenarios, I hope that some of the icons I set will not follow the global theme changes. How can I do this?
For example, I use Button in the code.
 <ar:Button ImageSourceSmall="{Binding Icon}"/>
How to make my Icon not change dynamically?
Hello,
You can use the CanAdapt attached property on an ImageSource or elements within an ImageSource (if it's a DrawingImage) to prevent adaptation as described in this documentation topic. Please note you set the attached property on the ImageSource itself (or within), and NOT on the control hosting the image.
Please log in to a validated account to post comments.