VisualStateUtilities Class

Provides various standard operations for working with VisualStateManager.

Inheritance Hierarchy

System.Object
  Microsoft.Xaml.Interactivity.VisualStateUtilities

Namespace:  Microsoft.Xaml.Interactivity
Assembly:  Microsoft.Xaml.Interactivity (in Microsoft.Xaml.Interactivity.dll)

Syntax

'Declaration
Public NotInheritable Class VisualStateUtilities
public static class VisualStateUtilities
public ref class VisualStateUtilities abstract sealed
[<AbstractClass>]
[<Sealed>]
type VisualStateUtilities =  class end
public final class VisualStateUtilities

The VisualStateUtilities type exposes the following members.

Methods

  Name Description
Public methodStatic member FindNearestStatefulControl Finds the nearest parent which contains visual states.
Public methodStatic member GetVisualStateGroups Gets the value of the VisualStateManager.VisualStateGroups attached property.
Public methodStatic member GoToState Transitions the control between two states.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Xaml.Interactivity Namespace

VisualStateManager