次の方法で共有


WindowTabManager.TabSwitchRequested イベント

定義

タブがシステム シェル サーフェスから に切り替わるときに発生します。

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

イベントの種類

注釈

重要

この API は、Win32 デスクトップ アプリ専用です。 UWP やその他のアプリの種類はサポートされていません。

このイベントを処理して、アプリでアクティブなタブに切り替えられたタブを作成します。

適用対象