Class
VisualStateManager

Manages visual states and their transitions on a control.

Definition

Namespace:ArtOfTest.WebAii.Design.UI.WPFToolkit

Assembly:ArtOfTest.WebAii.Design.dll

Syntax:

cs-api-definition
public class VisualStateManager : DependencyObject

Inheritance: objectDispatcherObjectDependencyObjectVisualStateManager

Inherited Members DependencyObject.Equals(object)DependencyObject.GetHashCode()DependencyObject.GetValue(DependencyProperty)DependencyObject.SetValue(DependencyProperty, object)DependencyObject.SetCurrentValue(DependencyProperty, object)DependencyObject.SetValue(DependencyPropertyKey, object)DependencyObject.ClearValue(DependencyProperty)DependencyObject.ClearValue(DependencyPropertyKey)DependencyObject.CoerceValue(DependencyProperty)DependencyObject.InvalidateProperty(DependencyProperty)DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs)DependencyObject.ShouldSerializeProperty(DependencyProperty)DependencyObject.ReadLocalValue(DependencyProperty)DependencyObject.GetLocalValueEnumerator()DependencyObject.DependencyObjectTypeDependencyObject.IsSealedDispatcherObject.Dispatcher

Constructors

VisualStateManager()

Declaration

cs-api-definition
public VisualStateManager()

Fields

CustomVisualStateManagerProperty

Declaration

cs-api-definition
public static readonly DependencyProperty CustomVisualStateManagerProperty

Field Value

DependencyProperty

Methods

GetCustomVisualStateManager(FrameworkElement)

Declaration

cs-api-definition
public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj)

Parameters

obj

FrameworkElement

Returns

VisualStateManager

GetVisualStateGroups(FrameworkElement)

Declaration

cs-api-definition
public static IList GetVisualStateGroups(FrameworkElement obj)

Parameters

obj

FrameworkElement

Returns

IList

GoToState(Control, string, bool)

Transitions a control's state.

Declaration

cs-api-definition
public static bool GoToState(Control control, string stateName, bool useTransitions)

Parameters

control

Control

The control who's state is changing.

stateName

string

The new state that the control is in.

useTransitions

bool

Whether to use transition animations.

Returns

bool

true if the state changed successfully, false otherwise.

GoToStateCore(Control, FrameworkElement, string, VisualStateGroup, VisualState, bool)

Allows subclasses to override the GoToState logic.

Declaration

cs-api-definition
protected virtual bool GoToStateCore(Control control, FrameworkElement templateRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)

Parameters

control

Control

templateRoot

FrameworkElement

stateName

string

group

VisualStateGroup

state

VisualState

useTransitions

bool

Returns

bool

RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, Control)

Declaration

cs-api-definition
protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, Control control)

Parameters

stateGroup

VisualStateGroup

oldState

VisualState

newState

VisualState

control

Control

RaiseCurrentStateChanging(VisualStateGroup, VisualState, VisualState, Control)

Declaration

cs-api-definition
protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, Control control)

Parameters

stateGroup

VisualStateGroup

oldState

VisualState

newState

VisualState

control

Control

SetCustomVisualStateManager(FrameworkElement, VisualStateManager)

Declaration

cs-api-definition
public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value)

Parameters

obj

FrameworkElement

value

VisualStateManager