Share via


NavigationView.SelectionFollowsFocus Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob sich die Elementauswahl ändert, wenn sich der Tastaturfokus ändert, oder legt diesen fest.

Entsprechende WinUI 2-API für UWP: Microsoft.UI.Xaml.Controls.NavigationView.SelectionFollowsFocus (für WinUI in der Windows App SDK siehe 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

Eigenschaftswert

Ein Wert der -Enumeration, der angibt, ob sich die Auswahl ändert, wenn sich der Tastaturfokus ändert. Der Standardwert ist Deaktiviert.

Windows-Anforderungen

Gerätefamilie
Windows 10, version 1809 (eingeführt in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v7.0)

Gilt für: