NavigationView.IsTitleBarAutoPaddingEnabled Proprietà

Definizione

Ottiene o imposta un valore che indica se la spaziatura interna superiore viene aggiunta all'intestazione della visualizzazione di spostamento quando viene utilizzata con una barra del titolo personalizzata.

public:
 property bool IsTitleBarAutoPaddingEnabled { bool get(); void set(bool value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool IsTitleBarAutoPaddingEnabled();

void IsTitleBarAutoPaddingEnabled(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool IsTitleBarAutoPaddingEnabled();

void IsTitleBarAutoPaddingEnabled(bool value);
public bool IsTitleBarAutoPaddingEnabled { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
public bool IsTitleBarAutoPaddingEnabled { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
var boolean = navigationView.isTitleBarAutoPaddingEnabled;
navigationView.isTitleBarAutoPaddingEnabled = boolean;
Public Property IsTitleBarAutoPaddingEnabled As Boolean

Valore della proprietà

Boolean

bool

true se la spaziatura interna automatica è abilitata; in caso contrario, false. Il valore predefinito è true.

Attributi
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Commenti

Impostare questa proprietà per abilitare o disabilitare la spaziatura interna applicata automaticamente all'inizio dell'area di intestazione della visualizzazione di spostamento quando viene usata con una barra del titolo finestra personalizzata. Per altre informazioni, vedere Visualizzazione di spostamento .

Si applica a