Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.14 KB

windowtabmanager_istabtearoutsupported_716001682.md

File metadata and controls

38 lines (25 loc) · 1.14 KB
-api-id -api-type
M:Windows.UI.Shell.WindowTabManager.IsTabTearOutSupported
winrt method

Windows.UI.Shell.WindowTabManager.IsTabTearOutSupported

-description

Gets a value that indicates whether the current system shell supports tearing a tab out into a separate window.

-returns

true if the current system shell supports tearing a tab out into a separate window; otherwise, false.

-remarks

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.

-see-also

-examples

if (WindowTabManager::IsTabTearOutSupported())
{
    m_tabTearOutRequestedRevoker = m_tabManager.TabTearOutRequested(winrt::auto_revoke, { this, &MainWindow::TabTearOutRequested });
}