Langage

TabView.CanTearOutTabs Propriété

Définition

Obtient ou définit une valeur qui indique si le glissement des onglets vers une nouvelle fenêtre est autorisé sur ce 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

Valeur de propriété

Boolean

bool

true si les onglets peuvent être déplacés vers une nouvelle fenêtre ; sinon, false. La valeur par défaut est false.

Attributs
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarques

Pour plus d’informations et d’exemples, consultez la section Déchirure de tabulation de l’affichage > tabulation.

Lorsque cette propriété est définie sur true, elle entraîne le levée d’événements TabTearOutWindowRequested et TabTearOutRequested au lieu de l’événement TabDragStarting , et provoque le levée d’événements ExternalTornOutTabsDropping et ExternalTornOutTabsDropped au lieu des événements TabStripDragOver, TabStripDrop, TabDragCompleted et TabDroppedOutside .

S’applique à

Voir aussi