Skip to content

Latest commit

 

History

History
40 lines (23 loc) · 1.65 KB

visualstatemanager_raisecurrentstatechanged_230937552.md

File metadata and controls

40 lines (23 loc) · 1.65 KB
-api-id -api-type
M:Microsoft.UI.Xaml.VisualStateManager.RaiseCurrentStateChanged(Microsoft.UI.Xaml.VisualStateGroup,Microsoft.UI.Xaml.VisualState,Microsoft.UI.Xaml.VisualState,Microsoft.UI.Xaml.Controls.Control)
winrt method

Microsoft.UI.Xaml.VisualStateManager.RaiseCurrentStateChanged

-description

When overridden in a derived class, fires the CurrentStateChanged event on the specified VisualStateGroup.

-parameters

-param stateGroup

The object on which the CurrentStateChanging event occurred.

-param oldState

The state that the control transitions from.

-param newState

The state that the control transitions to.

-param 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.

-examples

-see-also