NavigationView.IsBackButtonVisible 属性

定义

获取或设置一个值,该值指示后退按钮是否可见。 默认值为“Auto”,表示按钮可见性取决于 NavigationView 的 DisplayMode 设置。

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" .../>

属性值

枚举的一个值,该值指定 NavigationView 后退按钮的可见性。 默认值为“Auto”。

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

适用于