NavigationViewItem.MenuItems Property

Definition

Gets the collection of menu items displayed as children of the NavigationViewItem.

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

public:
 property IVector<Platform::Object ^> ^ MenuItems { IVector<Platform::Object ^> ^ get(); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
IVector<IInspectable> MenuItems();
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public IList<object> MenuItems { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; }
Public ReadOnly Property MenuItems As IList(Of Object)
<NavigationViewItem>
  <NavigationViewItem.MenuItems>
    NavigationViewItem
  </NavigationViewItem.MenuItems>
</NavigationViewItem>

Property Value

IList<Object>

IVector<Platform::Object>

IVector<IInspectable>

The collection of menu items displayed as children of the NavigationViewItem.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

Applies to