NavigationView.IsTitleBarAutoPaddingEnabled Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob der Kopfzeile der Navigationsansicht bei Verwendung mit einer benutzerdefinierten Titelleiste der Kopfzeile der Navigationsansicht hinzugefügt wird.

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

Eigenschaftswert

Boolean

bool

true , wenn der automatische Abstand aktiviert ist; andernfalls "false". Der Standardwert ist true.

Attribute
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Hinweise

Legen Sie diese Eigenschaft fest, um den Abstand zu aktivieren oder zu deaktivieren, der automatisch auf den oberen Rand des Kopfzeilenbereichs der Navigationsansicht angewendet wird, wenn sie mit einer benutzerdefinierten Fenstertitelleiste verwendet wird. Weitere Informationen finden Sie in der Navigationsansicht .

Gilt für: