NavigationViewDisplayMode Enum

Definition

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

C#
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=5)]
[Windows.Foundation.Metadata.Version(1)]
public enum NavigationViewDisplayMode
C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
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

Prepitné

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

Produkt Verzie
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6