When overridden in a derived class, fires the CurrentStateChanged event on the specified VisualStateGroup.
Syntax
protected void RaiseCurrentStateChanged( VisualStateGroup stateGroup, VisualState oldState, VisualState newState, Control control )
Parameters
- stateGroup
-
Type: VisualStateGroup
The object on which the CurrentStateChanging event occurred.
- oldState
-
Type: VisualState
The state that the control transitions from.
- newState
-
Type: VisualState
The state that the control transitions to.
- control
-
Type: Control
The control that transitioned states.
Remarks
This API is part of the scenario of defining a custom VisualStateManager behavior. The most important method to override in this scenario is GoToStateCore, because it's that method that changes the state behavior in your custom class behavior. Overriding the behavior of RaiseCurrentStateChanged and RaiseCurrentStateChanging is optional: how and when the events are raised by the default implementation might be adequate for your custom class.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 1/31/2013