VisualState Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a named visual state with setters and triggers that define the appearance of a control.
public ref class VisualState sealed
public sealed class VisualState
type VisualState = class
Public NotInheritable Class VisualState
- 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
| Name | Description |
|---|---|
| VisualState() |
Initializes a new instance of the VisualState class. |
Properties
| Name | Description |
|---|---|
| Name |
Gets or sets the name of the visual state (e.g., "Normal", "Focused", "Disabled"). |
| Setters |
Gets the collection of Setter objects that define property values for this state. |
| StateTriggers |
Gets the collection of StateTriggerBase objects that activate this state. |
| TargetType |
Gets or sets the type that this visual state targets. |
Methods
| Name | Description |
|---|---|
| Equals(Object) | |
| GetHashCode() | |