Dela via


WindowTabManager.TabThumbnailRequested Event

Definition

Occurs when the system shows a tab in a shell surface that displays a thumbnail view, as a signal to the app to generate a current thumbnail.

// Register
event_token TabThumbnailRequested(TypedEventHandler<WindowTabManager, WindowTabThumbnailRequestedEventArgs const&> const& handler) const;

// Revoke with event_token
void TabThumbnailRequested(event_token const* cookie) const;

// Revoke with event_revoker
WindowTabManager::TabThumbnailRequested_revoker TabThumbnailRequested(auto_revoke_t, TypedEventHandler<WindowTabManager, WindowTabThumbnailRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<WindowTabManager,WindowTabThumbnailRequestedEventArgs> TabThumbnailRequested;
function onTabThumbnailRequested(eventArgs) { /* Your code */ }
windowTabManager.addEventListener("tabthumbnailrequested", onTabThumbnailRequested);
windowTabManager.removeEventListener("tabthumbnailrequested", onTabThumbnailRequested);
- or -
windowTabManager.ontabthumbnailrequested = onTabThumbnailRequested;
Public Custom Event TabThumbnailRequested As TypedEventHandler(Of WindowTabManager, WindowTabThumbnailRequestedEventArgs) 

Event Type

Remarks

Important

This API is for Win32 desktop apps only. UWP and other app types are not supported.

The thumbnail generated in response to this event should be set as the value of the WindowTabThumbnailRequestedEventArgs.Image property. Call WindowTab.ReportThumbnailAvailable to notify the system that the new thumbnail image is ready.

Applies to