Skip to content
On this page

NavigationBar

Navigation bars let people switch between UI views on smaller devices.

  • Can contain 3-5 destinations of equal importance.

  • Destinations don't change. They should be consistent across app screens.

  • Used to be named bottom navigation.

Examples

xml
<...
	xmlns:icon="clr-namespace:IconPacks.IconKind;assembly=IconPacks.Material"
...>

<mdc:FAB IconData="{Static icon:Material.Star}" Style="{DynamicResource SecondaryFABStyle}" />

<mdc:NavigationBar>
    <mdc:NavigationBarItem IconData="{Static icon:Material.Star}" Text="label 1">
		...
	</mdc:NavigationBarItem>
    <mdc:NavigationBarItem IconData="{Static icon:Material.Star}" Text="label 2">
		...
	</mdc:NavigationBarItem>
</mdc:NavigationBar>

Properties

nametypedefault
ItemsObservableCollection<NavigationBarItem>
SelectedItemNavigationBarItem
CommandICommand
CommandParameterobject

Events

nametype
SelectedItemChangedEventHandler<SelectedItemChangedArgs<NavigationBarItem>>
nametypedefault
ContentView
IsActivedbool
Textstringempty
IconDatastringempty
IconColorColor
ActiveIndicatorHeightint32
ActiveIndicatorColorColorSecondaryContainerColor
BackgroundColorColorSurfaceContainerColor
FontColorColorOnSurfaceVariantColor
FontSizefloat14
FontFamilystring
FontWeightFontWeightMedium
FontIsItalicboolfalse
StateLayerColorColorOnSurfaceVariantColor
RippleDurationfloat0.5
RippleEasingEasingSinInOut
nametype
ClickedEventHandler<TouchEventArgs>
PressedEventHandler<TouchEventArgs>
ReleasedEventHandler<TouchEventArgs>
LongPressedEventHandler<TouchEventArgs>
RightClicked ( desktop only )EventHandler<TouchEventArgs>