NavigationView.CompactPaneLength Eigenschaft

Definition

Ruft die Breite des NavigationView-Bereichs im kompakten Anzeigemodus ab oder legt sie fest.

Diese Dokumentation gilt für WinUI 2 für UWP (für WinUI im Windows App SDK, siehe die Windows App SDK Namespaces).

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

void CompactPaneLength(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
double CompactPaneLength();

void CompactPaneLength(double value);
public double CompactPaneLength { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
public double CompactPaneLength { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")] set; }
Public Property CompactPaneLength As Double
<NavigationView CompactPaneLength="double" .../>

Eigenschaftswert

Double

double

Die Breite des Bereichs im kompakten Anzeigemodus. Die Standardeinstellung ist 48 geräteunabhängiges Pixel (DIP).

Attribute
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallbackAttribute

Hinweise

Diese Eigenschaft gibt die Breite des Bereichs an, wenn DisplayMode kompakt ist und IsPaneOpen false ist.

Gilt für: