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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top