共用方式為


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搭配使用時,不會引發此事件。

適用於