NavigationView.CompactModeThresholdWidth Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.