共用方式為


MediaTimelineController.PositionChanged 事件

定義

發生于 MediaTimelineController 的位置變更時。

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

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

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

事件類型

備註

MediaTimelineController 的位置變更時,系統會每秒引發數次此事件。

適用於