Can VSM be applied explicitly where the visual states contain setter properties as styles? #23651
Unanswered
NirmalKumarYuvaraj
asked this question in
Q&A
Replies: 0 comments
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.
-
Setting the Visual State Manager (VSM) for a button explicitly through a style property does not work as expected. However, assigning it implicitly works fine.
In my case, I have a button with a base style of white text color. I derive two styles from this: one is NormalStateStyle, and the other is DisabledStateStyle. NormalStateStyle sets the background color to green, and DisabledStateStyle sets the background color to black. When VSM is set as follows:
I toggle the enabled state using another button. After analyzing the source, it appears that the normal state style code replaces the existing VSM applied to the button. This issue can be observed for all elements bound to it. This was working in xamarin forms. Is this the intended behavior?.
Beta Was this translation helpful? Give feedback.
All reactions