Bagikan melalui


NavigationView.IsTitleBarAutoPaddingEnabled Properti

Definisi

Mendapatkan atau mengatur nilai yang menunjukkan apakah padding atas ditambahkan ke header tampilan navigasi saat digunakan dengan bilah judul kustom.

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

Nilai Properti

Boolean

bool

true jika padding otomatis diaktifkan; jika tidak, salah. Defaultnya adalah true

Atribut
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Keterangan

Atur properti ini untuk mengaktifkan atau menonaktifkan padding yang secara otomatis diterapkan ke bagian atas area header tampilan navigasi saat digunakan dengan bilah judul Jendela kustom. Lihat Tampilan navigasi untuk informasi selengkapnya.

Berlaku untuk