Udostępnij za pośrednictwem


NavigationViewItem.SelectsOnInvoked Property

Definition

Gets or sets a value that indicates whether invoking a navigation menu item also selects it.

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

public:
 property bool SelectsOnInvoked { bool get(); void set(bool value); };
bool SelectsOnInvoked();

void SelectsOnInvoked(bool value);
public bool SelectsOnInvoked { get; set; }
var boolean = navigationViewItem.selectsOnInvoked;
navigationViewItem.selectsOnInvoked = boolean;
Public Property SelectsOnInvoked As Boolean

Property Value

Boolean

bool

true if invoking a navigation menu item also selects it; otherwise, false. The default is true.

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