Share via


NavigationViewSelectionChangedEventArgs.SelectedItemContainer Property

Definition

Gets the container for the selected item.

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

public:
 property NavigationViewItemBase ^ SelectedItemContainer { NavigationViewItemBase ^ get(); };
NavigationViewItemBase SelectedItemContainer();
public NavigationViewItemBase SelectedItemContainer { get; }
var navigationViewItemBase = navigationViewSelectionChangedEventArgs.selectedItemContainer;
Public ReadOnly Property SelectedItemContainer As NavigationViewItemBase

Property Value

The container for the selected item.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Remarks

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

Applies to