Implementing Toolbar in .NET MAUI
Guide users on implementing the Syncfusion .NET MAUI Toolbar (SfToolbar) control - a customizable UI component that provides quick access to actions or commands through buttons, icons, or menus.
When to Use This Skill
Use this skill when users need to:
- Add a toolbar to their .NET MAUI application for quick access to commands
- Configure toolbar items with icons, text, or custom views
- Implement text formatting toolbars (bold, italic, underline, alignment)
- Create document editing toolbars with overflow handling
- Add navigation toolbars with horizontal or vertical layouts
- Configure selection modes (single, multiple, toggle)
- Handle toolbar events (taps, selections, interactions)
- Customize toolbar appearance (colors, styles, corner radius)
- Implement overlay toolbars for contextual actions
- Apply modern glass effects to toolbars
- Support keyboard navigation in toolbars
- Add tooltips to toolbar items
Component Overview
The Syncfusion .NET MAUI Toolbar (SfToolbar) is a feature-rich control that offers:
- Flexible item display: Icons, text, or custom views
- Multiple orientations: Horizontal and vertical layouts
- Overflow handling: Scroll, navigation buttons, more button, multi-row, extended row
- Selection modes: Single, single deselect, multiple selection
- Rich customization: Colors, styles, fonts, corner radius
- Event support: Taps, long press, touch interactions, selection changes
- Overlay toolbars: Contextual toolbars that appear on demand
- Modern effects: Liquid glass effect for sleek UI
- Accessibility: Tooltips, keyboard navigation, ARIA support
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
When to read: Installation, first-time setup, basic toolbar implementation
Topics covered:
- Installing Syncfusion.Maui.Toolbar NuGet package
- Registering Syncfusion core handler in MauiProgram.cs
- Creating your first toolbar with XAML and C#
- Adding basic toolbar items
- Configuring icons with FontImageSource
- Material icons font setup
Toolbar Items and Display
📄 Read: references/toolbar-items.md
When to read: Configuring toolbar items, icons, text, custom views, separators, alignment
Topics covered:
- Icon-only toolbar items
- Text-only toolbar items
- Icon with text combinations
- Icon sizing and text positioning
- Custom item views (buttons, checkboxes, entries)
- Separator items for visual organization
- Item sizing and spacing
- Leading, trailing, and center alignment
- Equal spacing configuration
- Clear selection programmatically
- Item naming for identification
Layout and Overflow
📄 Read: references/layout-and-overflow.md
When to read: Setting toolbar orientation, handling overflow items, configuring scroll/navigation modes
Topics covered:
- Horizontal toolbar layout
- Vertical toolbar layout
- Scroll mode for overflow items
- Navigation buttons for stepping through items
- More button with dropdown menu
- More button positioning (auto, left, right, top, bottom)
- Multi-row support for wrapping items
- Extended row with expand/collapse button
- Canceling default dropdown view
- Width and height considerations
Selection and Interaction
📄 Read: references/selection-and-interaction.md
When to read: Configuring selection behavior, enabling tooltips, handling user interactions
Topics covered:
- Single selection mode
- Single deselect mode (toggle selection)
- Multiple selection mode
- Enabling and disabling toolbar items
- Tooltip text configuration
- Tooltip customization (background, text style, position)
- Keyboard navigation support
- IsEnabled state management
- User interaction patterns
Events and Commands
📄 Read: references/events-and-commands.md
When to read: Handling toolbar events, implementing MVVM commands, responding to user actions
Topics covered:
- Tapped event and TappedCommand
- ItemTouchInteraction event for pointer actions
- ItemLongPressed event for long press gestures
- MoreButtonTapped event for overflow button
- MoreItemsChanged event for overflow items
- SelectionChanged event for selection tracking
- MVVM command patterns with ViewModel integration
- Event arguments and parameters
- Command execution and CanExecute
Customization
📄 Read: references/customization.md
When to read: Styling toolbar items, customizing buttons, changing colors, applying corner radius
Topics covered:
- Toolbar item customization (IsEnabled, TextStyle, Color)
- SelectionHighlightColor for selected items
- Separator customization (stroke color, thickness)
- Navigation button customization (colors, backgrounds)
- Navigation button DataTemplate customization
- More button customization (icon color, background)
- Divider line customization
- Toolbar corner radius
- Selection corner radius for selected items
- Theme integration
Advanced Features
📄 Read: references/advanced-features.md
When to read: Implementing overlay toolbars, applying glass effects, advanced styling
Topics covered:
- Overlay toolbar implementation
- Back icon customization in overlay
- BackIconAlignment (Start/End positioning)
- BackIconTemplate for custom back icons
- BackIconToolTipText configuration
- Liquid glass effect setup
- Transparent background for glass effect
- Toolbar grouping layout with glass effect
- Group spacing with separator stroke thickness
- Platform support (macOS 26+, iOS 26+, .NET 10)
1---
2name: syncfusion-maui-toolbar
3description: Implements Syncfusion .NET MAUI Toolbar (SfToolbar) for navigation bars and command bars. Use when working with toolbars, toolbar items, navigation bars, toolbar buttons, or action toolbars in .NET MAUI applications. This skill covers toolbar item configuration, icons, text, overflow behavior, orientation, selection modes, and toolbar customization.
4metadata:
5 author: "Syncfusion Inc"
6 version: "34.1.29"
7---
8
9# Implementing Toolbar in .NET MAUI
10
11Guide users on implementing the Syncfusion .NET MAUI Toolbar (SfToolbar) control - a customizable UI component that provides quick access to actions or commands through buttons, icons, or menus.
12
13## When to Use This Skill
14
15Use this skill when users need to:
16
17- **Add a toolbar** to their .NET MAUI application for quick access to commands
18- **Configure toolbar items** with icons, text, or custom views
19- **Implement text formatting toolbars** (bold, italic, underline, alignment)
20- **Create document editing toolbars** with overflow handling
21- **Add navigation toolbars** with horizontal or vertical layouts
22- **Configure selection modes** (single, multiple, toggle)
23- **Handle toolbar events** (taps, selections, interactions)
24- **Customize toolbar appearance** (colors, styles, corner radius)
25- **Implement overlay toolbars** for contextual actions
26- **Apply modern glass effects** to toolbars
27- **Support keyboard navigation** in toolbars
28- **Add tooltips** to toolbar items
29
30## Component Overview
31
32The Syncfusion .NET MAUI Toolbar (SfToolbar) is a feature-rich control that offers:
33
34- **Flexible item display**: Icons, text, or custom views
35- **Multiple orientations**: Horizontal and vertical layouts
36- **Overflow handling**: Scroll, navigation buttons, more button, multi-row, extended row
37- **Selection modes**: Single, single deselect, multiple selection
38- **Rich customization**: Colors, styles, fonts, corner radius
39- **Event support**: Taps, long press, touch interactions, selection changes
40- **Overlay toolbars**: Contextual toolbars that appear on demand
41- **Modern effects**: Liquid glass effect for sleek UI
42- **Accessibility**: Tooltips, keyboard navigation, ARIA support
43
44## Documentation and Navigation Guide
45
46### Getting Started
47📄 **Read:** [references/getting-started.md](references/getting-started.md)
48
49**When to read:** Installation, first-time setup, basic toolbar implementation
50
51Topics covered:
52- Installing Syncfusion.Maui.Toolbar NuGet package
53- Registering Syncfusion core handler in MauiProgram.cs
54- Creating your first toolbar with XAML and C#
55- Adding basic toolbar items
56- Configuring icons with FontImageSource
57- Material icons font setup
58
59### Toolbar Items and Display
60📄 **Read:** [references/toolbar-items.md](references/toolbar-items.md)
61
62**When to read:** Configuring toolbar items, icons, text, custom views, separators, alignment
63
64Topics covered:
65- Icon-only toolbar items
66- Text-only toolbar items
67- Icon with text combinations
68- Icon sizing and text positioning
69- Custom item views (buttons, checkboxes, entries)
70- Separator items for visual organization
71- Item sizing and spacing
72- Leading, trailing, and center alignment
73- Equal spacing configuration
74- Clear selection programmatically
75- Item naming for identification
76
77### Layout and Overflow
78📄 **Read:** [references/layout-and-overflow.md](references/layout-and-overflow.md)
79
80**When to read:** Setting toolbar orientation, handling overflow items, configuring scroll/navigation modes
81
82Topics covered:
83- Horizontal toolbar layout
84- Vertical toolbar layout
85- Scroll mode for overflow items
86- Navigation buttons for stepping through items
87- More button with dropdown menu
88- More button positioning (auto, left, right, top, bottom)
89- Multi-row support for wrapping items
90- Extended row with expand/collapse button
91- Canceling default dropdown view
92- Width and height considerations
93
94### Selection and Interaction
95📄 **Read:** [references/selection-and-interaction.md](references/selection-and-interaction.md)
96
97**When to read:** Configuring selection behavior, enabling tooltips, handling user interactions
98
99Topics covered:
100- Single selection mode
101- Single deselect mode (toggle selection)
102- Multiple selection mode
103- Enabling and disabling toolbar items
104- Tooltip text configuration
105- Tooltip customization (background, text style, position)
106- Keyboard navigation support
107- IsEnabled state management
108- User interaction patterns
109
110### Events and Commands
111📄 **Read:** [references/events-and-commands.md](references/events-and-commands.md)
112
113**When to read:** Handling toolbar events, implementing MVVM commands, responding to user actions
114
115Topics covered:
116- Tapped event and TappedCommand
117- ItemTouchInteraction event for pointer actions
118- ItemLongPressed event for long press gestures
119- MoreButtonTapped event for overflow button
120- MoreItemsChanged event for overflow items
121- SelectionChanged event for selection tracking
122- MVVM command patterns with ViewModel integration
123- Event arguments and parameters
124- Command execution and CanExecute
125
126### Customization
127📄 **Read:** [references/customization.md](references/customization.md)
128
129**When to read:** Styling toolbar items, customizing buttons, changing colors, applying corner radius
130
131Topics covered:
132- Toolbar item customization (IsEnabled, TextStyle, Color)
133- SelectionHighlightColor for selected items
134- Separator customization (stroke color, thickness)
135- Navigation button customization (colors, backgrounds)
136- Navigation button DataTemplate customization
137- More button customization (icon color, background)
138- Divider line customization
139- Toolbar corner radius
140- Selection corner radius for selected items
141- Theme integration
142
143### Advanced Features
144📄 **Read:** [references/advanced-features.md](references/advanced-features.md)
145
146**When to read:** Implementing overlay toolbars, applying glass effects, advanced styling
147
148Topics covered:
149- Overlay toolbar implementation
150- Back icon customization in overlay
151- BackIconAlignment (Start/End positioning)
152- BackIconTemplate for custom back icons
153- BackIconToolTipText configuration
154- Liquid glass effect setup
155- Transparent background for glass effect
156- Toolbar grouping layout with glass effect
157- Group spacing with separator stroke thickness
158- Platform support (macOS 26+, iOS 26+, .NET 10)
159