Share via


VisualStateGroup Class

Definition

Contains a collection of mutually exclusive VisualState objects and the setters to apply when transitioning between them.

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

Name Description
VisualStateGroup()

Initializes a new instance of the VisualStateGroup class.

Properties

Name Description
CurrentState

Gets the currently active VisualState in this group.

Name

Gets or sets the name of the visual state group.

States

Gets the collection of VisualState objects in this group.

TargetType

Gets or sets the type that this visual state group targets.

Methods

Name Description
Equals(Object)
GetHashCode()

Applies to