Udostępnij za pośrednictwem


NavigationViewDisplayMode Enum

Definition

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

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

public enum class NavigationViewDisplayMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
enum class NavigationViewDisplayMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
public enum NavigationViewDisplayMode
var value = Windows.UI.Xaml.Controls.NavigationViewDisplayMode.minimal
Public Enum NavigationViewDisplayMode
Inheritance
NavigationViewDisplayMode
Attributes

Windows requirements

Device family
Windows 10 Fall Creators Update (introduced in 10.0.16299.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v5.0)

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.

Applies to