다음을 통해 공유


MediaElement.CurrentStateChanged 이벤트

정의

CurrentState 속성의 값이 변경되면 발생합니다.

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

이벤트 유형

적용 대상