NavigationView.ShoulderNavigationEnabled 属性

定义

获取或设置一个值,该值指示何时可以使用游戏控制器缓冲键导航 NavigationView 中的顶级导航项。

public:
 property NavigationViewShoulderNavigationEnabled ShoulderNavigationEnabled { NavigationViewShoulderNavigationEnabled get(); void set(NavigationViewShoulderNavigationEnabled value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")]
NavigationViewShoulderNavigationEnabled ShoulderNavigationEnabled();

void ShoulderNavigationEnabled(NavigationViewShoulderNavigationEnabled value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")]
NavigationViewShoulderNavigationEnabled ShoulderNavigationEnabled();

void ShoulderNavigationEnabled(NavigationViewShoulderNavigationEnabled value);
public NavigationViewShoulderNavigationEnabled ShoulderNavigationEnabled { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")]
public NavigationViewShoulderNavigationEnabled ShoulderNavigationEnabled { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::NavigationViewShoulderNavigationEnabled::Never")] set; }
var navigationViewShoulderNavigationEnabled = navigationView.shoulderNavigationEnabled;
navigationView.shoulderNavigationEnabled = navigationViewShoulderNavigationEnabled;
Public Property ShoulderNavigationEnabled As NavigationViewShoulderNavigationEnabled

属性值

枚举的一个值,该值指示何时可以使用游戏控制器缓冲键导航 NavigationView 中的顶级导航项。 默认值为 Never

属性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

适用于