Share via


WindowTabManager.IsTabTearOutSupported Method

Definition

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

public:
 static bool IsTabTearOutSupported();
 static bool IsTabTearOutSupported();
public static bool IsTabTearOutSupported();
function isTabTearOutSupported()
Public Shared Function IsTabTearOutSupported () As Boolean

Returns

Boolean

bool

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

Examples

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

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.

Applies to