共用方式為


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) 

事件類型

備註

只有在 MediaTransportControlsMediaPlayerElement 搭配使用時,才會引發此事件。 當 MediaTransportControlsMediaPlayerElement 搭配使用時,不會引發此事件。

適用於