共用方式為


MediaTimelineController.Ended 事件

定義

如果IsLoopingEnabled設定為 false,則時間軸控制器到達Duration所指定的時間範圍結束時發生。

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

事件類型

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於