Share via


NavigationView.IsPaneOpen Properti

Definisi

Mendapatkan atau mengatur nilai yang menentukan apakah panel NavigationView diperluas ke lebar penuhnya.

Dokumentasi ini berlaku untuk WinUI 2 untuk UWP (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).

public:
 property bool IsPaneOpen { bool get(); void set(bool value); };
bool IsPaneOpen();

void IsPaneOpen(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 IsPaneOpen();

void IsPaneOpen(bool value);
public bool IsPaneOpen { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
public bool IsPaneOpen { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
Public Property IsPaneOpen As Boolean
<NavigationView IsPaneOpen="bool" .../>

Nilai Properti

Boolean

bool

true jika panel diperluas ke lebar penuh; jika tidak, salah.

Atribut
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Berlaku untuk