WindowTabManager.TabThumbnailRequested Evento

Definizione

Si verifica quando il sistema mostra una scheda in una superficie della shell che visualizza una visualizzazione di anteprima, come segnale all'app per generare un'anteprima corrente.

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

Tipo evento

Commenti

Importante

Questa API è solo per le app desktop Win32. I tipi di app UWP e altri tipi di app non sono supportati.

L'anteprima generata in risposta a questo evento deve essere impostata come valore della proprietà WindowTabThumbnailRequestedEventArgs.Image . Chiamare WindowTab.ReportThumbnailAvailable per notificare al sistema che la nuova immagine di anteprima è pronta.

Si applica a