Dela via


NavigationViewSelectionChangedEventArgs.SelectedItem Property

Definition

Gets the newly selected menu item.

Equivalent WinUI 2 API for UWP: Microsoft.UI.Xaml.Controls.NavigationViewSelectionChangedEventArgs.SelectedItem (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; }
var object = navigationViewSelectionChangedEventArgs.selectedItem;
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