TabView.CanTearOutTabs Proprietà

Definizione

Ottiene o imposta un valore che indica se il trascinamento delle schede in una nuova finestra è consentito in questo controllo 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

Valore della proprietà

Boolean

bool

true se le schede possono essere trascinate in una nuova finestra; in caso contrario, false. Il valore predefinito è false.

Attributi
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Commenti

Per altre informazioni ed esempi, vedere Tab view > Tab tear-out.

Quando questa proprietà è impostata su true, fa sì che gli eventi TabTearOutWindowRequested e TabTearOutRequested vengano generati anziché l'evento TabDragStarting e causi eventi ExternalTornOutTabsDropping e ExternalTornOutTabsDropped anziché TabStripDragOver, TabStripDrop, TabDragCompleted e TabDroppedOutside .

Si applica a

Vedi anche