VisualStateManager::GoToState Method (FrameworkElement^, String^, Boolean)
Transitions the control between two states. Use this method to transition states on control that has a ControlTemplate.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: static bool GoToState( FrameworkElement^ control, String^ stateName, bool useTransitions )
The control to transition between states.
The state to transition to.
Return ValueType: System::Boolean
true if the control successfully transitioned to the new state; otherwise, false.
The following example demonstrates a control that uses the Creating a Control That Has a Customizable Appearance.method to transition between states. For the entire example, see
Available since 4.0