Delen via


NavigationView.MenuItems Property

Definition

Gets the collection of menu items displayed in the NavigationMenu.

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

public:
 property IVector<Platform::Object ^> ^ MenuItems { IVector<Platform::Object ^> ^ get(); };
IVector<IInspectable> MenuItems();
public IList<object> MenuItems { get; }
var iVector = navigationView.menuItems;
Public ReadOnly Property MenuItems As IList(Of Object)

Property Value

IVector<Object>

IList<Object>

IVector<Platform::Object>

IVector<IInspectable>

The collection of menu items displayed in the NavigationMenu. The default is an empty collection.

Applies to