Condividi tramite


MediaElement.CurrentStateChanged Evento

Definizione

Si verifica quando il valore della proprietà CurrentState cambia.

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

Tipo evento

Si applica a