You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A [SelectionChanged](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.SfToolbar.html#Syncfusion_Maui_Toolbar_SfToolbar_SelectionChanged) event occurs, each time a toolbar item is selected.
191
191
@@ -210,8 +210,8 @@ Below is a list of the arguments:
Copy file name to clipboardExpand all lines: MAUI/Toolbar/selection-mode.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,11 +9,11 @@ documentation: ug
9
9
10
10
# Selection Mode in .NET MAUI Toolbar (SfToolbar)
11
11
12
-
The Selection mode is specified in the Toolbar property enumeration. You can select the toolbar item by tapping the item in the toolbar. SfToolbar provides three types of modes such as Single, SingleDeselect, and Multiple. The default SelectionMode is Single, which allows the user to select only one item at a time.
12
+
The Selection mode is specified in the Toolbar property enumeration. You can select the toolbar item by tapping the item in the toolbar. SfToolbar[https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.SfToolbar.html] provides three types of modes such as `Single`, `SingleDeselect`, and `Multiple`. The default SelectionMode[https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.SfToolbar.html#Syncfusion_Maui_Toolbar_SfToolbar_SelectionMode] is Single[https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.ToolbarSelectionMode.html#Syncfusion_Maui_Toolbar_ToolbarSelectionMode_Single], which allows the user to select only one item at a time.
13
13
14
14
## Single Selection
15
15
16
-
The Single selection can be performed in the Toolbar by setting the ToolbarSelectionMode property to Single. In this selection, you can select a single item at a time in the toolbar.
16
+
The `Single` selection can be performed in the Toolbar by setting the SelectionMode[https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.SfToolbar.html#Syncfusion_Maui_Toolbar_SfToolbar_SelectionMode] property to Single[https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.ToolbarSelectionMode.html#Syncfusion_Maui_Toolbar_ToolbarSelectionMode_Single]. In this selection, you can select a single item at a time in the toolbar.
ObservableCollection<BaseToolbarItem> itemCollection = new ObservableCollection<BaseToolbarItem>
84
84
{
85
85
new SfToolbarItem
@@ -130,7 +130,7 @@ namespace ToolbarSample
130
130
131
131
## Single Deselection
132
132
133
-
The Single Deselection can be performed in the Toolbar by setting the ToolbarSelectionMode property to SingleDeselect. In this selection, you can clear the selection by click the selected item.
133
+
The `Single Deselection` can be performed in the Toolbar by setting the SelectionMode[https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.SfToolbar.html#Syncfusion_Maui_Toolbar_SfToolbar_SelectionMode] property to SingleDeselect[https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.ToolbarSelectionMode.html#Syncfusion_Maui_Toolbar_ToolbarSelectionMode_SingleDeselect]. In this mode, only one item can be selected at a time, and you can deselect the currently selected item by simply clicking on it again. This provides a quick way to clear the selection without needing additional actions.
ObservableCollection<BaseToolbarItem> itemCollection = new ObservableCollection<BaseToolbarItem>
201
201
{
202
202
new SfToolbarItem
@@ -247,7 +247,9 @@ namespace ToolbarSample
247
247
248
248
## Multiple Selection
249
249
250
-
The Multiple selection can be performed in the Toolbar by setting the ToolbarSelectionMode property to Multiple. In this selection, you can select a multiple items in the toolbar. You can remove the selected items by click the selected items.
250
+
The `Multiple selection` can be performed in the Toolbar by setting the SelectionMode[https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.SfToolbar.html#Syncfusion_Maui_Toolbar_SfToolbar_SelectionMode] property to Multiple[https://help.syncfusion.com/cr/maui/Syncfusion.Maui.Toolbar.ToolbarSelectionMode.html#Syncfusion_Maui_Toolbar_ToolbarSelectionMode_Multiple]. In this mode, users can select more than one item at a time. You can remove selected items by clicking on them again, which will deselect them. This toggle-based interaction provides a clear and efficient method for managing selections without requiring additional controls.
251
+
252
+
N> Multiple selection not supported when ToolbarItem has Overlay toolbar.
0 commit comments