Luca Benatti
Luca Benatti

Reputation: 175

UWP - Unselectable NavigationViewItem but Clickable

What I would like to create is a NavigationViewItem which is not selectable but is clickable. For example the "New Message" item in UWP App Mail that you see in the image.

enter image description here

When clicked the item show a dialog window but the selection does not change and the colored bar does not move from the previous selected item.

Thank you for the help.

Upvotes: 2

Views: 220

Answers (1)

Michael S. Scherotter
Michael S. Scherotter

Reputation: 10785

<NavigationViewItem SelectsOnInvoked="False"/>

It's a new dependency property in Windows 10.1809. See the docs here.

Upvotes: 1

Related Questions