Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.7 KB

visualstatemanager_raisecurrentstatechanging_642620570.md

File metadata and controls

35 lines (23 loc) · 1.7 KB
-api-id -api-type
M:Windows.UI.Xaml.VisualStateManager.RaiseCurrentStateChanging(Windows.UI.Xaml.VisualStateGroup,Windows.UI.Xaml.VisualState,Windows.UI.Xaml.VisualState,Windows.UI.Xaml.Controls.Control)
winrt method

Windows.UI.Xaml.VisualStateManager.RaiseCurrentStateChanging

-description

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

-parameters

-param stateGroup

The object that the CurrentStateChanging event occurred on.

-param oldState

The state that the control is transitioning from.

-param newState

The state that the control should transition to.

-param control

The control where the transition animation between states is applied.

-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