Class VisualStateGroup
Contains mutually exclusive VisualState objects and VisualTransition objects that are used to go from one state to another.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows
Assembly: OpenSilver.dll
Syntax
public sealed class VisualStateGroup : DependencyObject, IDependencyObject
Properties
| Improve this Doc View SourceCurrentState
Gets the most recently set VisualState from a successful call to the GoToState(Control, String, Boolean) method.
Declaration
public VisualState CurrentState { get; }
Property Value
Type | Description |
---|---|
VisualState | The most recently set VisualState from a successful call to the GoToState(Control, String, Boolean) method. |
Name
Gets the name of the VisualStateGroup.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the VisualStateGroup. |
States
Gets the collection of mutually exclusive VisualState objects.
Declaration
public IList States { get; }
Property Value
Type | Description |
---|---|
System.Collections.IList | The collection of mutually exclusive VisualState objects. |
Transitions
Gets the collection of VisualTransition objects.
Declaration
[NotImplemented]
public IList Transitions { get; }
Property Value
Type | Description |
---|---|
System.Collections.IList | The collection of VisualTransition objects. |
Events
| Improve this Doc View SourceCurrentStateChanged
Occurs after a control transitions into a different state.
Declaration
public event EventHandler<VisualStateChangedEventArgs> CurrentStateChanged
Event Type
Type | Description |
---|---|
System.EventHandler<VisualStateChangedEventArgs> |
CurrentStateChanging
Occurs when a control begins transitioning into a different state.
Declaration
public event EventHandler<VisualStateChangedEventArgs> CurrentStateChanging
Event Type
Type | Description |
---|---|
System.EventHandler<VisualStateChangedEventArgs> |