Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Transitions the control between two states.
Namespace: Microsoft.Xaml.Interactivity
Assembly: Microsoft.Xaml.Interactivity (in Microsoft.Xaml.Interactivity.dll)
Syntax
'Declaration
Public Shared Function GoToState ( _
control As Control, _
stateName As String, _
useTransitions As Boolean _
) As Boolean
public static bool GoToState(
Control control,
string stateName,
bool useTransitions
)
public:
static bool GoToState(
Control^ control,
String^ stateName,
bool useTransitions
)
static member GoToState :
control:Control *
stateName:string *
useTransitions:bool -> bool
public static function GoToState(
control : Control,
stateName : String,
useTransitions : boolean
) : boolean
Parameters
control
Type: ControlThe Control to transition between states.
stateName
Type: System.StringThe state to transition to.
useTransitions
Type: System.Booleantrue to use a VisualTransition to transition between states; otherwise, false.
Return Value
Type: System.Boolean
true if the control is successfully transitioned to the new state; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | control or stateName is null. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.