VisualStateGroup.CurrentStateChanging Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a control begins changing into a different state.
public:
virtual event VisualStateChangedEventHandler ^ CurrentStateChanging;
// Register
event_token CurrentStateChanging(VisualStateChangedEventHandler const& handler) const;
// Revoke with event_token
void CurrentStateChanging(event_token const* cookie) const;
// Revoke with event_revoker
VisualStateGroup::CurrentStateChanging_revoker CurrentStateChanging(auto_revoke_t, VisualStateChangedEventHandler const& handler) const;
public event VisualStateChangedEventHandler CurrentStateChanging;
function onCurrentStateChanging(eventArgs) { /* Your code */ }
visualStateGroup.addEventListener("currentstatechanging", onCurrentStateChanging);
visualStateGroup.removeEventListener("currentstatechanging", onCurrentStateChanging);
- or -
visualStateGroup.oncurrentstatechanging = onCurrentStateChanging;
Public Custom Event CurrentStateChanging As VisualStateChangedEventHandler