MediaElement.CurrentStateChanged Event

Definition

Occurs when the value of the CurrentState property changes.

// Register
event_token CurrentStateChanged(RoutedEventHandler const& handler) const;

// Revoke with event_token
void CurrentStateChanged(event_token const* cookie) const;

// Revoke with event_revoker
MediaElement::CurrentStateChanged_revoker CurrentStateChanged(auto_revoke_t, RoutedEventHandler const& handler) const;
public event RoutedEventHandler CurrentStateChanged;
function onCurrentStateChanged(eventArgs) { /* Your code */ }
mediaElement.addEventListener("currentstatechanged", onCurrentStateChanged);
mediaElement.removeEventListener("currentstatechanged", onCurrentStateChanged);
- or -
mediaElement.oncurrentstatechanged = onCurrentStateChanged;
Public Custom Event CurrentStateChanged As RoutedEventHandler 
<MediaElement CurrentStateChanged="eventhandler"/>

Event Type

Applies to