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.

public:
 property NavigationViewBackButtonVisible IsBackButtonVisible { NavigationViewBackButtonVisible get(); void set(NavigationViewBackButtonVisible value); };
/// [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);
/// [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 { [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")]
public NavigationViewBackButtonVisible IsBackButtonVisible { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewBackButtonVisible::Auto")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewBackButtonVisible::Auto")] set; }
var navigationViewBackButtonVisible = navigationView.isBackButtonVisible;
navigationView.isBackButtonVisible = navigationViewBackButtonVisible;
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