MediaTransportControls.ThumbnailRequested 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当用户执行查找操作时,每当应用需要显示与查找栏相邻的缩略图时发生。
// Register
event_token ThumbnailRequested(TypedEventHandler<MediaTransportControls, MediaTransportControlsThumbnailRequestedEventArgs const&> const& handler) const;
// Revoke with event_token
void ThumbnailRequested(event_token const* cookie) const;
// Revoke with event_revoker
MediaTransportControls::ThumbnailRequested_revoker ThumbnailRequested(auto_revoke_t, TypedEventHandler<MediaTransportControls, MediaTransportControlsThumbnailRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<MediaTransportControls,MediaTransportControlsThumbnailRequestedEventArgs> ThumbnailRequested;
function onThumbnailRequested(eventArgs) { /* Your code */ }
mediaTransportControls.addEventListener("thumbnailrequested", onThumbnailRequested);
mediaTransportControls.removeEventListener("thumbnailrequested", onThumbnailRequested);
- or -
mediaTransportControls.onthumbnailrequested = onThumbnailRequested;
Public Custom Event ThumbnailRequested As TypedEventHandler(Of MediaTransportControls, MediaTransportControlsThumbnailRequestedEventArgs)
事件类型
注解
仅当 MediaTransportControls 与 MediaPlayerElement 一起使用时,才会引发此事件。 当 MediaTransportControls 与 MediaPlayerElement 一起使用时,不会引发它。