Share via


NavigationViewSelectionChangedEventArgs.SelectedItem Property

Definition

Gets the newly selected menu item.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

public:
 property Platform::Object ^ SelectedItem { Platform::Object ^ get(); };
IInspectable SelectedItem();
public object SelectedItem { get; }
Public ReadOnly Property SelectedItem As Object

Property Value

Object

Platform::Object

IInspectable

The newly selected menu item.

Remarks

This property gets the data item that was selected. To get the NavigationViewItem that is the container for the selected item, use the SelectedItemContainer property.

Applies to