-api-id | -api-type |
---|---|
P:Microsoft.UI.Xaml.Controls.NavigationView.FooterMenuItems |
winrt property |
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).
The collection of menu items displayed in the footer section of the NavigationView. The default is an empty collection.
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
.
<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>