Articles in this section
Category / Section

How to enable multiple selection mode in WinUI ComboBox?

2 mins read

This article explains how to enable multiple selection mode in WinUI ComboBox.

The ComboBox allows the user to select multiple values from the drop-down list. The multi-select ComboBox mode can be enabled by setting the SelectionMode property as Multiple.

There are two different display modes to perform multiple selections in ComboBox

  • Delimiter
  • Token

Display multiple selected items with token representation or simply divide them with a delimiter text. The multiple selection display mode can be set by using the MultiSelectionDisplayMode property. The default value of the MultiSelectionDisplayMode property is Delimiter.

Delimiter

When selecting the multiple items, the selected items can be separated from each other with a desired character given for a delimiter. The ComboBox supports various delimiter characters to separate the selected items. The delimiter character can be set by using the DelimiterText property. The default delimiter character is ,.

XAML
<editors:SfComboBox x:Name="comboBox"
                   ItemsSource="{Binding SocialMedias}"
                   SelectionMode="Multiple"
                   DisplayMemberPath="Name"
                   TextMemberPath="Name" />

MultipleselectionDelimiter.gif

Token

Selected items will be displayed with a customizable token representation and the users can remove each tokenized item by clicking the close button. Token mode supports both editable and non-editable text boxes for selecting items from a data source.

XAML
   <editors:SfComboBox x:Name="comboBox"
                       ItemsSource="{Binding SocialMedias}"
                       SelectionMode="Multiple"
                       MultiSelectionDisplayMode="Token"
                       DisplayMemberPath="Name"
                       TextMemberPath="Name" />

MultipleselectionToken.gif

Conclusion

I hope you enjoyed learning about how to enable multiple selection mode in WinUI ComboBox.

You can refer to our WinUI ComboBox feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications.

For current customers, you can check out our components from the Licence and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forum, Support portal, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied