VisualStateManager.RaiseCurrentStateChanged Method

Raises the CurrentStateChanged event on the specified VisualStateGroup.

Namespace:  System.Windows
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.

ExceptionCondition
ArgumentNullException

stateGroup is null.

-or-

newState is null.

-or-

control is null.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2015 Microsoft