wpfcontrolsstatesbrushes

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


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!


Solution

  • 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.