MediaTransportControls.ThumbnailRequested 事件

定义

当用户执行查找操作时,每当应用需要显示与查找栏相邻的缩略图时发生。

// 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) 

事件类型

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

注解

仅当 MediaTransportControlsMediaPlayerElement 一起使用时,才会引发此事件。 当 MediaTransportControlsMediaElement 一起使用时,不会引发它。

适用于