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 的位置发生更改时,系统每秒会引发多次此事件。

适用于