Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

TabView.CanTearOutTabs Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets a value that indicates whether or not dragging out tabs into a new window is allowed on this TabView.

public:
 property bool CanTearOutTabs { bool get(); void set(bool value); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
bool CanTearOutTabs();

void CanTearOutTabs(bool value);
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
public bool CanTearOutTabs { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] set; }
var boolean = tabView.canTearOutTabs;
tabView.canTearOutTabs = boolean;
Public Property CanTearOutTabs As Boolean

Property Value

Boolean

bool

true if tabs can be dragged out into a new window; otherwise, false. The default is false.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarks

For more information and examples, see Tab view > Tab tear-out.

When this property is set to true, it causes TabTearOutWindowRequested and TabTearOutRequested events to be raised instead of the TabDragStarting event, and causes ExternalTornOutTabsDropping and ExternalTornOutTabsDropped events to be raised instead of TabStripDragOver, TabStripDrop, TabDragCompleted, and TabDroppedOutside events.

Applies to

See also


Feedback

Was this page helpful?