NavigationViewPaneDisplayMode Enum

Definition

Defines constants that specify how and where the NavigationView pane is shown.

public enum class NavigationViewPaneDisplayMode
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=7)]
/// [Windows.Foundation.Metadata.Version(1)]
enum class NavigationViewPaneDisplayMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
enum class NavigationViewPaneDisplayMode
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=7)]
[Windows.Foundation.Metadata.Version(1)]
public enum NavigationViewPaneDisplayMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public enum NavigationViewPaneDisplayMode
Public Enum NavigationViewPaneDisplayMode
Inheritance
NavigationViewPaneDisplayMode
Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute VersionAttribute ContractVersionAttribute

Fields

Auto 0

The pane is shown on the left side of the control, and changes between minimal, compact, and full states depending on the width of the window.

Left 1

The pane is shown on the left side of the control in its fully open state.

LeftCompact 3

The pane is shown on the left side of the control. Only the pane icons are shown by default.

LeftMinimal 4

The pane is shown on the left side of the control. Only the pane menu button is shown by default.

Top 2

The pane is shown at the top of the control.

Examples

Tip

For more info, design guidance, and code examples, see NavigationView.

The WinUI 3 Gallery app includes interactive examples of most WinUI 3 controls, features, and functionality. Get the app from the Microsoft Store or get the source code on GitHub.

Applies to

See also