WPF和VSM - 国家?

问题描述:

我使用WPF中的VSM(Visual State Manager,来自WPF Toolkit),我试图找到一个国家列表。WPF和VSM - 国家?

基本上,我明白有一些“魔术”状态 - 就像MouseOver状态在控件被隐藏时自动应用,或者在聚焦时应用的聚焦状态。

有没有这些地方的清单?我确定有,我无法找到它。

看看Karen Corby在Parts & States Model with VisualStateManager上的最后一篇文章(见第4点)。她列出了在基础实施的控制Silverlight的两个“特殊”状态组:

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

我相信WPF保持这个组织命名约定使用Silverlight,其中VSM首次实现兼容性。

Here是另一个资源。

其中,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 

对于那些希望在WPF在.NET 4.0,你可以得到一个详尽的清单在这里:

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

+0

链接断开:( – Spidermain50 2016-03-29 18:17:51