what is visual state in wpf? and anyone knows how to start understand and use that?

前端 未结 3 1462
醉梦人生
醉梦人生 2021-02-13 18:47

what is visual state in wpf? and anyone knows how to start understand and use that?

maybe like a complete tutorial, because i never touch visual state before. or just a

3条回答
  •  醉酒成梦
    2021-02-13 19:19

    Visual state is used to change the appearance of wpf control in different states of the control , for example take the case of a radio button, it may appear differently while focused , while clicked or while disabled ,

    visual states falls under different visual state groups like

    1. CommonStates
    2. CheckStates
    3. FocusStates

    mostly used visual states are :

    1. MouseOver
    2. Pressed
    3. Disabled
    4. Checked
    5. Unchecked
    6. Indeterminate
    7. Focused
    8. Unfocused
    9. PointerFocused

    An example of visualstate used in a radio button style is given