MediaElement.CurrentStateChanged Ereignis

Definition

Tritt auf, wenn sich der Wert der CurrentState-Eigenschaft ändert.

// 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"/>

Ereignistyp

Gilt für: