Share via


NavigationView.DisplayMode Property

Definition

Gets a value that specifies how the pane and content areas of a NavigationView are being shown.

public:
 property NavigationViewDisplayMode DisplayMode { NavigationViewDisplayMode get(); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewDisplayMode::Minimal")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewDisplayMode::Minimal")]
NavigationViewDisplayMode DisplayMode();
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewDisplayMode::Minimal")]
public NavigationViewDisplayMode DisplayMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewDisplayMode::Minimal")] get; }
var navigationViewDisplayMode = navigationView.displayMode;
Public ReadOnly Property DisplayMode As NavigationViewDisplayMode

Property Value

A value of the enumeration that specifies how the pane and content areas of a NavigationView are being shown.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarks

To set the state of the pane and content areas, use the PaneDisplayMode property.

Applies to