| ThemeStyleStates Property |
Gets the visual states.
Namespace: DigitalRune.Game.UI.RenderingAssembly: DigitalRune.Game.UI (in DigitalRune.Game.UI.dll) Version: 1.8.0.0 (1.8.0.14553)
Syntax public NamedObjectCollection<ThemeState> States { get; }
Public ReadOnly Property States As NamedObjectCollection(Of ThemeState)
Get
public:
property NamedObjectCollection<ThemeState^>^ States {
NamedObjectCollection<ThemeState^>^ get ();
}
member States : NamedObjectCollection<ThemeState> with get
Property Value
Type:
NamedObjectCollectionThemeStateThe visual states.
Remarks
The
UIRenderer selects the first matching state from this collection. The
visual states should therefore be sorted by priority in case there are conflicting states.
For example, when a style includes inherited visual states (see
IsInherited) and normal visual states, then the inherited visual
states need to be the first in the collection. Otherwise, the render will most likely ignore
them.
See Also