Click or drag to resize
VisualStateManagerGoToState Method
Transitions the control between two states.

Namespace: Windows.UI.Xaml
Assembly: CSharpXamlForHtml5 (in CSharpXamlForHtml5.dll) Version: 1.0.0.0
Syntax
C#
public static bool GoToState(
	Control control,
	string stateName,
	bool useTransitions
)

Parameters

control
Type: Windows.UI.Xaml.ControlsControl
The control to transition between states.
stateName
Type: SystemString
The state to transition to.
useTransitions
Type: SystemBoolean
True to use a VisualTransition to transition between states; otherwise, false.

Return Value

Type: Boolean
True if the control successfully transitioned to the new state; otherwise, false.
See Also