Share via


NavigationViewDisplayMode Enum

Definition

Defines constants that specify how the pane is shown in a NavigationView.

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

Fields

Name Value Description
Minimal 0

Only the menu button remains fixed. The pane shows and hides as needed.

Compact 1

The pane always shows as a narrow sliver which can be opened to full width.

Expanded 2

The pane stays open alongside the content.

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