TabView.CanTearOutTabs Propriedade
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Obtém ou define um valor que indica se arrastar ou não guias para uma nova janela é permitido neste 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 da propriedade
bool
true se as guias puderem ser arrastadas para uma nova janela; caso contrário, false. O padrão é false.
- Atributos
-
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute
Comentários
Para obter mais informações e exemplos, consulte Tab view > Tab tear-out.
Quando essa propriedade é definida como true, ela faz com que os eventos TabTearOutWindowRequested e TabTearOutRequested sejam acionados em vez do evento TabDragStarting e faz com que os eventos ExternalTornOutTabsDropping e ExternalTornOutTabsDropped sejam gerados em vez dos eventos TabStripDragOver, TabStripDrop, TabDragCompleted e TabDroppedOutside .