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

前端 未结 3 1457
醉梦人生
醉梦人生 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:30

    Visual States in WPF are about controlling the appearance of controls. It is possible for the state of a control to change then have the appearance of the control change in response to the state change. For example if a control is pressed/disabled/in focus it may have a different appearance for each state. There is an example of how to use WPF's trigger mechanism to change the appearance of controls here; that will provide you with some general background information on changing the appearance of controls. There is a nice general tutorial on WPF here and a good explanation of Visual State here. For more advanced use there is information from Microsoft on the Visual State Manager here

提交回复
热议问题