NavigationView.SelectionFollowsFocus 属性

定义

获取或设置一个值,该值指示键盘焦点更改时项目选择是否更改。

适用于 UWP 的等效 WinUI 2 API:Windows 应用 SDK中用于 WinUI 的 Microsoft.UI.Xaml.Controls.NavigationView.SelectionFollowsFocus (,请参阅Windows 应用 SDK命名空间) 。

public:
 property NavigationViewSelectionFollowsFocus SelectionFollowsFocus { NavigationViewSelectionFollowsFocus get(); void set(NavigationViewSelectionFollowsFocus value); };
NavigationViewSelectionFollowsFocus SelectionFollowsFocus();

void SelectionFollowsFocus(NavigationViewSelectionFollowsFocus value);
public NavigationViewSelectionFollowsFocus SelectionFollowsFocus { get; set; }
var navigationViewSelectionFollowsFocus = navigationView.selectionFollowsFocus;
navigationView.selectionFollowsFocus = navigationViewSelectionFollowsFocus;
Public Property SelectionFollowsFocus As NavigationViewSelectionFollowsFocus

属性值

枚举的一个值,该值指示键盘焦点更改时所选内容是否发生更改。 默认值为 Disabled

Windows 要求

设备系列
Windows 10, version 1809 (在 10.0.17763.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v7.0 中引入)

适用于