Delen via


NavigationView.SelectionFollowsFocus Property

Definition

Gets or sets a value that indicates whether item selection changes when keyboard focus changes.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationView.SelectionFollowsFocus (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

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

Property Value

A value of the enumeration that indicates whether selection changes when keyboard focus changes. The default is Disabled.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to