Udostępnij za pośrednictwem


TabView.CanTearOutTabs Property

Definition

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