dotnet / wpf

WPF is a .NET Core UI framework for building Windows desktop applications.
MIT License
6.84k stars 1.13k forks source link

Add Multi Selection to `ComboBox` #9027

Open AchimStuy opened 1 month ago

AchimStuy commented 1 month ago

ListBox has SelectionMode property, which can be set to Multiple or Extended. ComboBox shared the CanSelectMultiple property, which is set to false initially. Setting it to true would require:

It might make sense to make ComboBox inherit MultiSelector.

I could also implement the feature, if I get some guidance (e.g. on which branch to implement).

miloush commented 1 month ago

Related: #8861

Note that you concerns are mostly UI related and that is really the last concern here (and possibly apart from keeping popup open they are questionable as defaults, ListBox also doesn't have check boxes).

Making the controls inherit from MultiSelector is a good start. There will be enough virtualization issues to tackle.