-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 |
When overridden in a derived class, fires the CurrentStateChanged event on the specified VisualStateGroup.
The object on which the CurrentStateChanging event occurred.
The state that the control transitions from.
The state that the control transitions to.
The control that transitioned states.
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.