Navigation drawers let people switch between UI views on larger devices
View Material Design documentation
<material3:MaterialNavigationDrawer
Headline="Mail"
Command="{Binding TestCommand}"
ItemsSource="{Binding Items}" />
This property is to set the headline text.
This property is to set the headline text color.
This property is to set the headline text font size.
This property is to set the headline text font family.
This property is to set the headline margin.
This property is to set the active indicator background color.
This property is to set the active indicator label color.
This property is to set the active indicator corner radius. By default is 28.
This property is to set the label text color.
This property is to set the label text font size.
This property is to set the label text font family.
This property is to set the section label text color.
This property is to set the section label text font size.
This property is to set the section label text font family.
This property is to set the section label margin.
This property is to set if the section's divider is visible or hidden.
This property is to set if the item's divider is visible or hidden.
This property is to set the divider color.
This property is to set the badge type.
This property is to the text color of the badge. it's only supported on Large type
This property is to the font size of the badge. it's only supported on Large type
This property is to the font family of the badge. it's only supported on Large type
This property is to set the badge background color.
This property is for displaying list of data. You should set a List of MaterialNavigationDrawerItem. Its definition is:
- Text (string) : Text showed
- BadgeText (string) : Text showed in the badge
- Section (string) : This property is to dive the items in sections
- SelectedLeadingIcon (string): Leading icon used when item is selected
- CustomSelectedLeadingIcon (view): Custom leading view used the item is selected
- UnselectedLeadingIcon (string): Leading icon used when item is Unselected
- CustomUnselectedLeadingIcon (view): Custom leading view used when item is Unselected
- SelectedTrailingIcon (string): Trailing icon used when item is selected
- CustomSelectedTrailingIcon (view): Custom trailing view used the item is selected
- UnselectedTrailingIcon (string): Trailing icon used when item is Unselected
- CustomUnselectedTrailingIcon (view): Custom trailing view used when item is Unselected
- IsSelected (bool) : by default you can select an item
- ShowActivityIndicator (bool) : show the activity indicator when the item is selected. By default is true.
- IsEnabled (bool) : enable or disabled the item. by default is true.
This property is to set the height request of each item.
This property is to bind on the viewmodel.
This property is to set the animation when the item is tapped.
- None
- Fade (Default)
- Scale
- Custom
This property is to customize the animation when the item is tapped.
This property is to set a custom animation when the item is tapped.