是什么在WPF视觉状态?任何人都知道如何开始了解和使用呢? [英] what is visual state in wpf? and anyone knows how to start understand and use that?

查看:167
本文介绍了是什么在WPF视觉状态?任何人都知道如何开始了解和使用呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是在WPF视觉状态?任何人都知道如何开始了解和使用的?

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 simple example code

THX耶

推荐答案

可视状态在WPF是关于控制控件的外观。它是可能的控制的状态改变,然后有控制改变的外观响应于所述状态改变。例如,如果一个控制压/禁用/焦点,可能有不同的外观对于每个状态。有如何使用WPF的触发机制来改变控制此处
有对这里
WPF 和的此处
。对于更高级的使用有对此处视频一>

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. There are nice general tutorials on WPF here and here. For more advanced use there is a video on how to use the Visual State Manager here

这篇关于是什么在WPF视觉状态?任何人都知道如何开始了解和使用呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆