开发者

WPF: looking for list of each control's states and brushes

开发者 https://www.devze.com 2023-01-09 15:10 出处:网络
Is there a list somewhere of all the common states for each control? We\'re restyling them and it would be nice to not have to hunt through each control to figure this out.

Is there a list somewhere of all the common states for each control? We're restyling them and it would be nice to not have to hunt through each control to figure this out.

Basically a list like:

Button: Disabled, Hover, Pressed, Selected, Focus, etc.

ListBox: Disabled, Hover, Focus, etc

I'm looking in Blend and MSDN but not finding anything. Why I asked.

开发者_开发百科THanks!


You could use Blend or MSDN documentation. Or, if you feel that way inclined, you could write a script to reflect over the controls and generate a report.

EDIT: annoyingly, the MSDN docs for WPF controls do not include TemplateVisualStateAttributes like they do for Silverlight, so that does not appear to be an option in WPF.

0

精彩评论

暂无评论...
验证码 换一张
取 消