Прочетете на английски

Споделяне чрез


NavigationView.DisplayMode Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets a value that specifies how the pane and content areas of a NavigationView are being shown.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

C#
public NavigationViewDisplayMode DisplayMode { get; }
C#
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewDisplayMode::Minimal")]
public NavigationViewDisplayMode DisplayMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewDisplayMode::Minimal")] get; }

Property Value

A value of the enumeration that specifies how the pane and content areas of a NavigationView are being shown.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Remarks

To set the state of the pane and content areas, use the PaneDisplayMode property.

Applies to

Продукт Версии
WinUI 2 2.0, 2.1, 2.2, 2.3, 2.4, 2.5-prerelease, 2.5, 2.6-prerelease, 2.6, 2.7-prerelease, 2.7, 2.8-prerelease, 2.8