WPF and VSM - list of states?

I am using VSM (Visual State Manager from WPF Toolkit) in WPF and I am trying to find a list of states.

Basically, I understand that there are certain “magic” states - for example, the MouseOver state is automatically applied when controlling the mouse or in the Focused state, which is used when focusing.

Is there any list? I'm sure there is, I just can’t find it.

+3
source share
3 answers

Look at the latest Karen Corby post on the Part and State Model using VisualStateManager (see clause 4). It lists two “special” state groups that are implemented on the basic controls for Silverlight:

Silverlight CommonStates (Normal, MouseOver, Pressed, Disabled) and FocusStates (Unfocused, Focused) http://scorbs.com/wp-content/uploads/2008/06/specialstates-thumb.jpg

I believe that WPF has retained this organization and naming convention for compatibility with Silverlight, where VSM was first implemented.

+4
source

Here is another resource.

Jeetu ... . .

Button, GridViewColumnHeader, RepeatButton:
    CommonStates: Normal, MouseOver, Pressed, Disabled
    FocusStates: Unfocused, Focused

CheckBox, RadioButton:
    CommonStates: Normal, MouseOver, Pressed, Disabled
    CheckStates: Unchecked, Checked, Indeterminate
    FocusStates: Unfocused, Focused

ListBoxItem:
    CommonStates: Normal, MouseOver
    SelectionStates: Unselected, Selected
    FocusStates: Unfocused, Focused

ProgressBar:
    CommonStates: Determinate, Indeterminate
    FocusStates: Unfocused, Focused

TextBox, RichTextBox:
    CommonStates: Normal, MouseOver, Disabled, ReadOnly
    FocusStates: Unfocused, Focused
+5

For those looking at WPF on .NET 4.0, you can get an exhaustive list here:

http://msdn.microsoft.com/en-us/library/aa970773.aspx

0
source

Source: https://habr.com/ru/post/1711624/


All Articles