VisualStateManager.RaiseCurrentStateChanged Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Raises the CurrentStateChanged event on the specified VisualStateGroup.
Assembly: System.Windows (in System.Windows.dll)
protected void RaiseCurrentStateChanged( VisualStateGroup stateGroup, VisualState oldState, VisualState newState, Control control )
Parameters
- stateGroup
- Type: System.Windows.VisualStateGroup
The object on which the CurrentStateChanging event
- oldState
- Type: System.Windows.VisualState
The state that the control transitioned from.
- newState
- Type: System.Windows.VisualState
The state that the control transitioned to.
- control
- Type: System.Windows.Controls.Control
The control that transitioned states.
| Exception | Condition |
|---|---|
| ArgumentNullException | stateGroup is null. -or- newState is null. -or- control is null. |
Show: