Freigeben über


VisualStateGroup Class

Definition

Contains a list of related visual states that can be applied to a visual element.

public ref class VisualStateGroup sealed
[Microsoft.Maui.Controls.ContentProperty("States")]
public sealed class VisualStateGroup
[<Microsoft.Maui.Controls.ContentProperty("States")>]
type VisualStateGroup = class
Public NotInheritable Class VisualStateGroup
Inheritance
VisualStateGroup
Attributes

Constructors

VisualStateGroup()

Creates a new VisualStateGroup object with default values.

Properties

CurrentState

Gets the current visual state.

Name

Gets or sets the name of the visual state.

States

Gets the list of states that comprise the group.

TargetType

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

Methods

Equals(Object)
GetHashCode()

Applies to