Share via


MediaTimelineController.Ended Event

Definition

Occurs when the timeline controller reaches the end of the time window specified by the Duration if IsLoopingEnabled is set to false.

// Register
event_token Ended(TypedEventHandler<MediaTimelineController, IInspectable const&> const& handler) const;

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

// Revoke with event_revoker
MediaTimelineController::Ended_revoker Ended(auto_revoke_t, TypedEventHandler<MediaTimelineController, IInspectable const&> const& handler) const;
public event TypedEventHandler<MediaTimelineController,object> Ended;
function onEnded(eventArgs) { /* Your code */ }
mediaTimelineController.addEventListener("ended", onEnded);
mediaTimelineController.removeEventListener("ended", onEnded);
- or -
mediaTimelineController.onended = onEnded;
Public Custom Event Ended As TypedEventHandler(Of MediaTimelineController, Object) 

Event Type

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to