MediaPlaybackList.ItemOpened 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在成功開啟播放清單中的 MediaPlaybackItem 時發生。
// Register
event_token ItemOpened(TypedEventHandler<MediaPlaybackList, MediaPlaybackItemOpenedEventArgs const&> const& handler) const;
// Revoke with event_token
void ItemOpened(event_token const* cookie) const;
// Revoke with event_revoker
MediaPlaybackList::ItemOpened_revoker ItemOpened(auto_revoke_t, TypedEventHandler<MediaPlaybackList, MediaPlaybackItemOpenedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaPlaybackList,MediaPlaybackItemOpenedEventArgs> ItemOpened;
function onItemOpened(eventArgs) { /* Your code */ }
mediaPlaybackList.addEventListener("itemopened", onItemOpened);
mediaPlaybackList.removeEventListener("itemopened", onItemOpened);
- or -
mediaPlaybackList.onitemopened = onItemOpened;
Public Custom Event ItemOpened As TypedEventHandler(Of MediaPlaybackList, MediaPlaybackItemOpenedEventArgs)