VisualStateGroup.CurrentStateChanged 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 after a control changes into a different state.
public:
virtual event VisualStateChangedEventHandler ^ CurrentStateChanged;
// Register
event_token CurrentStateChanged(VisualStateChangedEventHandler const& handler) const;
// Revoke with event_token
void CurrentStateChanged(event_token const* cookie) const;
// Revoke with event_revoker
VisualStateGroup::CurrentStateChanged_revoker CurrentStateChanged(auto_revoke_t, VisualStateChangedEventHandler const& handler) const;
public event VisualStateChangedEventHandler CurrentStateChanged;
function onCurrentStateChanged(eventArgs) { /* Your code */ }
visualStateGroup.addEventListener("currentstatechanged", onCurrentStateChanged);
visualStateGroup.removeEventListener("currentstatechanged", onCurrentStateChanged);
- or -
visualStateGroup.oncurrentstatechanged = onCurrentStateChanged;
Public Custom Event CurrentStateChanged As VisualStateChangedEventHandler