Dela via


NavigationView.PaneDisplayMode Property

Definition

Gets or sets a value that indicates how and where the NavigationView pane is shown.

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

public:
 property NavigationViewPaneDisplayMode PaneDisplayMode { NavigationViewPaneDisplayMode get(); void set(NavigationViewPaneDisplayMode value); };
NavigationViewPaneDisplayMode PaneDisplayMode();

void PaneDisplayMode(NavigationViewPaneDisplayMode value);
public NavigationViewPaneDisplayMode PaneDisplayMode { get; set; }
var navigationViewPaneDisplayMode = navigationView.paneDisplayMode;
navigationView.paneDisplayMode = navigationViewPaneDisplayMode;
Public Property PaneDisplayMode As NavigationViewPaneDisplayMode

Property Value

A value of the enumeration that indicates how and where the NavigationView pane is shown. The default is Auto.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to

See also