NavigationView.FooterMenuItems 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 list of objects to be used as navigation items in the footer menu.
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 ^> ^ FooterMenuItems { IVector<Platform::Object ^> ^ get(); };
IVector<IInspectable> FooterMenuItems();
public IList<object> FooterMenuItems { get; }
Public ReadOnly Property FooterMenuItems As IList(Of Object)
Property Value
The collection of menu items displayed in the footer section of the NavigationView. The default is an empty collection.
Examples
Add footer menu items in markup
<muxc:NavigationView>
<muxc:NavigationView.MenuItems>
<muxc:NavigationViewItem Content="Browse" Icon="Library" />
<muxc:NavigationViewItem Content="Track an Order" Icon="Map" />
<muxc:NavigationViewItem Content="Order History" Icon="Tag" />
</muxc:NavigationView.MenuItems>
<muxc:NavigationView.FooterMenuItems>
<muxc:NavigationViewItem Content="Account" Icon="Contact" />
<muxc:NavigationViewItem Content="Your Cart" Icon="Shop" />
<muxc:NavigationViewItem Content="Help" Icon="Help" />
</muxc:NavigationView.FooterMenuItems>
</muxc:NavigationView>
Remarks
FooterMenuItems participates in the same selection model as NavigationView.MenuItems. Therefore, only one NavigationViewItem within the NavigationView can be selected at a time, whether it is in the main menu items or footer menu items.
FooterMenuItems will be displayed above the Settings Item by default. To remove the Settings item, set the IsSettingsVisible
property to false
.