Share via


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.

Cette documentation s’applique à WinUI 2 pour UWP (pour WinUI dans le SDK d'application Windows, consultez les espaces de noms SDK d'application Windows).

public:
 property bool IsTitleBarAutoPaddingEnabled { bool get(); void set(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);
[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; }
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 appliqué automatiquement en haut de la zone d’en-tête de la vue de navigation lorsqu’elle est utilisée avec une barre de titre de fenêtre personnalisée. Pour plus d’informations, consultez l’affichage navigation .

S’applique à