ClassVisualStateManager
Manages visual states and their transitions on a control.
Definition
Namespace:ArtOfTest.WebAii.Design.UI.WPFToolkit
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
public class VisualStateManager : DependencyObject
Inheritance: objectDispatcherObjectDependencyObjectVisualStateManager
Inherited Members
Constructors
VisualStateManager()
Declaration
public VisualStateManager()
Fields
CustomVisualStateManagerProperty
Declaration
public static readonly DependencyProperty CustomVisualStateManagerProperty
Field Value
Methods
GetCustomVisualStateManager(FrameworkElement)
Declaration
public static VisualStateManager GetCustomVisualStateManager(FrameworkElement obj)
Parameters
obj
Returns
GetVisualStateGroups(FrameworkElement)
Declaration
public static IList GetVisualStateGroups(FrameworkElement obj)
Parameters
obj
Returns
GoToState(Control, string, bool)
Transitions a control's state.
Declaration
public static bool GoToState(Control control, string stateName, bool useTransitions)
Parameters
control
The control who's state is changing.
stateName
The new state that the control is in.
useTransitions
Whether to use transition animations.
Returns
true if the state changed successfully, false otherwise.
GoToStateCore(Control, FrameworkElement, string, VisualStateGroup, VisualState, bool)
Allows subclasses to override the GoToState logic.
Declaration
protected virtual bool GoToStateCore(Control control, FrameworkElement templateRoot, string stateName, VisualStateGroup group, VisualState state, bool useTransitions)
Parameters
control
templateRoot
stateName
group
state
useTransitions
Returns
RaiseCurrentStateChanged(VisualStateGroup, VisualState, VisualState, Control)
Declaration
protected void RaiseCurrentStateChanged(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, Control control)
Parameters
stateGroup
oldState
newState
control
RaiseCurrentStateChanging(VisualStateGroup, VisualState, VisualState, Control)
Declaration
protected void RaiseCurrentStateChanging(VisualStateGroup stateGroup, VisualState oldState, VisualState newState, Control control)
Parameters
stateGroup
oldState
newState
control
SetCustomVisualStateManager(FrameworkElement, VisualStateManager)
Declaration
public static void SetCustomVisualStateManager(FrameworkElement obj, VisualStateManager value)
Parameters
obj
value