Replies: 2 comments 3 replies
-
Style apps using XAML has a section on Style Inheritance
You can declare Visual States for Normal, Pressed and Focused states and use these visual states to switch between your various styles. |
Beta Was this translation helpful? Give feedback.
3 replies
-
I have found a different way to solve this problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am setting the luminosity of the ImageSource in an ImageButton to give the user visual feedback that the button was pressed using the Pressed, Released and Unfocus events. Even though I restore the color to its original value when the press is complete, when the theme changes the color is not set to the new color from the new theme. I am guessing that under the covers the styles setup a binding that is lost when I set the color in code. Is there a way to restore the binding? Is there a way to force the style to apply the color when the theme changes? is there a way to get the effective color from the styles so I can set it myself in code? I use both styles applied using TargetType and styles set using StyleClass.
Beta Was this translation helpful? Give feedback.
All reactions