Dela via


NavigationViewBackButtonVisible Enum

Definition

Defines constants that specify whether the back button is visible in NavigationView.

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

public enum class NavigationViewBackButtonVisible
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 393216)]
enum class NavigationViewBackButtonVisible
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 393216)]
public enum NavigationViewBackButtonVisible
Public Enum NavigationViewBackButtonVisible
Inheritance
NavigationViewBackButtonVisible
Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Fields

Name Value Description
Collapsed 0

Do not display the back button in NavigationView, and do not reserve space for it in layout.

Visible 1

Display the back button in NavigationView.

Auto 2

The system chooses whether or not to display the back button, depending on the device/form factor. On phones, tablets, desktops, and hubs, the back button is visible. On Xbox/TV, the back button is collapsed.

Applies to