Bagikan melalui


NavigationView.CompactPaneLength Properti

Definisi

Mendapatkan atau mengatur lebar panel NavigationView dalam mode tampilan ringkasnya.

API WinUI 2 yang setara untuk UWP: Microsoft.UI.Xaml.Controls.NavigationView.CompactPaneLength (untuk WinUI di SDK Aplikasi Windows, lihat namespace SDK Aplikasi Windows).

public:
 property double CompactPaneLength { double get(); void set(double value); };
double CompactPaneLength();

void CompactPaneLength(double value);
public double CompactPaneLength { get; set; }
var double = navigationView.compactPaneLength;
navigationView.compactPaneLength = double;
Public Property CompactPaneLength As Double
<NavigationView CompactPaneLength="double" .../>

Nilai Properti

Double

double

Lebar panel dalam mode tampilan ringkasnya. Defaultnya adalah 48 piksel independen perangkat (DIP).

Keterangan

Properti ini menentukan lebar panel ketika DisplayMode ringkas dan IsPaneOpen salah.

Berlaku untuk