Show / Hide Table of Contents

Class VisualStateGroup

Contains mutually exclusive VisualState objects and VisualTransition objects that are used to go from one state to another.

Inheritance
System.Object
DependencyObject
VisualStateGroup
Inherited Members
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.INTERNAL_OnAttachedToVisualTree()
DependencyObject.INTERNAL_OnDetachedFromVisualTree()
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
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 Source

CurrentState

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.

| Improve this Doc View Source

Name

Gets the name of the VisualStateGroup.

Declaration
public string Name { get; set; }
Property Value
Type Description
System.String

The name of the VisualStateGroup.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

CurrentStateChanged

Occurs after a control transitions into a different state.

Declaration
public event EventHandler<VisualStateChangedEventArgs> CurrentStateChanged
Event Type
Type Description
System.EventHandler<VisualStateChangedEventArgs>
| Improve this Doc View Source

CurrentStateChanging

Occurs when a control begins transitioning into a different state.

Declaration
public event EventHandler<VisualStateChangedEventArgs> CurrentStateChanging
Event Type
Type Description
System.EventHandler<VisualStateChangedEventArgs>

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
  • Improve this Doc
  • View Source