NavigationView.IsTitleBarAutoPaddingEnabled Propriété

Définition

Obtient ou définit une valeur qui indique si le remplissage supérieur est ajouté à l’en-tête de la vue de navigation lorsqu’il est utilisé avec une barre de titre personnalisée.

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

Valeur de propriété

Boolean

bool

true si le remplissage automatique est activé ; sinon, false. La valeur par défaut est true.

Attributs
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarques

Définissez cette propriété pour activer ou désactiver le remplissage qui est automatiquement appliqué au haut de la zone d’en-tête de l’affichage de navigation lorsqu’il est utilisé avec une barre de titre fenêtre personnalisée. Pour plus d’informations, consultez Vue de navigation .

S’applique à