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)