NavigationViewSelectionChangedEventArgs.SelectedItem Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.