次の方法で共有


TabViewTabTearOutRequestedEventArgs.NewWindowId Property

Definition

Gets the WindowId for the new window that will host the torn-out tabs.

public:
 property WindowId NewWindowId { WindowId get(); };
WindowId NewWindowId();
public WindowId NewWindowId { get; }
var windowId = tabViewTabTearOutRequestedEventArgs.newWindowId;
Public ReadOnly Property NewWindowId As WindowId

Property Value

The WindowId for the new window that will host the torn-out tabs. The default is null.

Remarks

The new window is provided in the TabView.TabTearOutWindowRequested event. If the NewWindowId is not set in the TabTearOutWindowRequested event handler, the tab tear-out will be cancelled and this event will not be raised. The window represented by the window ID can be any HWND, not necessarily a XAML Window. It must be on the same thread as the TabView.

Applies to