VisualState Class

Definition

Contains a named visual state that applies a list of setters to an element in order to correlate a state with an appearance.

public sealed class VisualState
type VisualState = class
Inheritance
VisualState

Remarks

With visual state objects, developers can associate novel visual state names with a list of property setters that cause the control to represent that state. This frees the developer from relying on the set of provided states for a control, enabling finer control over the appearance of the application as the user's workflow progresses.

Constructors

VisualState()

Creates a new VisualState object with default values.

Properties

Name

Gets or sets the developer-specified name of this visual state.

Setters

Gets the list of property setters that establish the visual representation of the element when it is in the state that is named by this visual state object.

StateTriggers
TargetType

Gets or sets the type of element that this visual state object can target.

Applies to