Share via


NavigationView.IsBackButtonVisible Property

Definition

Gets or sets a value that indicates whether the back button is visible or not. Default value is "Auto", which indicates that button visibility depends on the DisplayMode setting of the NavigationView.

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

public:
 property NavigationViewBackButtonVisible IsBackButtonVisible { NavigationViewBackButtonVisible get(); void set(NavigationViewBackButtonVisible value); };
NavigationViewBackButtonVisible IsBackButtonVisible();

void IsBackButtonVisible(NavigationViewBackButtonVisible value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewBackButtonVisible::Auto")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewBackButtonVisible::Auto")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewBackButtonVisible::Auto")]
NavigationViewBackButtonVisible IsBackButtonVisible();

void IsBackButtonVisible(NavigationViewBackButtonVisible value);
public NavigationViewBackButtonVisible IsBackButtonVisible { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewBackButtonVisible::Auto")]
public NavigationViewBackButtonVisible IsBackButtonVisible { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewBackButtonVisible::Auto")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewBackButtonVisible::Auto")] set; }
Public Property IsBackButtonVisible As NavigationViewBackButtonVisible
<NavigationView IsBackButtonVisible="backButtonVisibleEnumVal" .../>

Property Value

A value of the enumeration that specifies the visibility of the NavigationView back button. The default is "Auto".

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Applies to