-api-id | -api-type |
---|---|
M:Windows.UI.Shell.WindowTabManager.IsTabTearOutSupported |
winrt method |
Gets a value that indicates whether the current system shell supports tearing a tab out into a separate window.
true
if the current system shell supports tearing a tab out into a separate window; otherwise, false
.
Important
This API is for Win32 desktop apps only. UWP and other app types are not supported.
Call IsTabTearOutSupported
before subscribing to the TabTearOutRequested event and subscribe only if it returns true
.
This method indicates only whether the system supports surfaces that can request tab tear out, such as Snap Assist. If your app does not support tab tear out, its tabs will not show in Snap Assist.
if (WindowTabManager::IsTabTearOutSupported())
{
m_tabTearOutRequestedRevoker = m_tabManager.TabTearOutRequested(winrt::auto_revoke, { this, &MainWindow::TabTearOutRequested });
}