Share via


WindowTabManager.TabSwitchRequested Evento

Definição

Ocorre quando uma guia é alternada para de uma superfície de shell do sistema.

// Register
event_token TabSwitchRequested(TypedEventHandler<WindowTabManager, WindowTabSwitchRequestedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
WindowTabManager::TabSwitchRequested_revoker TabSwitchRequested(auto_revoke_t, TypedEventHandler<WindowTabManager, WindowTabSwitchRequestedEventArgs const&> const& handler) const;
public event TypedEventHandler<WindowTabManager,WindowTabSwitchRequestedEventArgs> TabSwitchRequested;
function onTabSwitchRequested(eventArgs) { /* Your code */ }
windowTabManager.addEventListener("tabswitchrequested", onTabSwitchRequested);
windowTabManager.removeEventListener("tabswitchrequested", onTabSwitchRequested);
- or -
windowTabManager.ontabswitchrequested = onTabSwitchRequested;
Public Custom Event TabSwitchRequested As TypedEventHandler(Of WindowTabManager, WindowTabSwitchRequestedEventArgs) 

Tipo de evento

Comentários

Importante

Essa API é apenas para aplicativos da área de trabalho Win32. Não há suporte para UWP e outros tipos de aplicativo.

Manipule esse evento para fazer a guia que foi alternada para a guia ativa em seu aplicativo.

Aplica-se a