Partager via


MediaElement.CurrentStateChanged Événement

Définition

Se produit lorsque la valeur de la propriété CurrentState change.

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

Type d'événement

S’applique à