Share via


NavigationView.CompactModeThresholdWidth Property

Definition

Gets or sets the minimum window width at which the NavigationView enters Compact display mode.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationView.CompactModeThresholdWidth (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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

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

Property Value

Double

double

The minimum window width at which the NavigationView enters Compact display mode. The default is 641 pixels.

Applies to