Lenguaje

TabView.CanTearOutTabs Propiedad

Definición

Obtiene o establece un valor que indica si se permiten o no arrastrar pestañas a una nueva ventana en este Control 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

Valor de propiedad

Boolean

bool

true si las pestañas se pueden arrastrar a una nueva ventana; de lo contrario, false. El valor predeterminado es false.

Atributos
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Comentarios

Para obtener más información y ejemplos, vea Vista de tabulación > Desmontaje de tabulación.

Cuando esta propiedad se establece en true, hace que se generen eventos TabTearOutWindowRequested y TabTearOutRequested en lugar del evento TabDragStarting y hace que se generen eventos ExternalTornOutTabsDropping y ExternalTornOutTabsDropped en lugar de TabStripDragOver, TabStripDrop, TabDragCompleted y TabDroppedOutside .

Se aplica a

Consulte también