dotnet / dotnet/wpf

Add Multi Selection to `ComboBox`

Open
#9,027 1 comment 1 reaction 0 assignees View on GitHub
Enhancement Requested
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

`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:

* the popup to stay open,
* each ComboBoxItem to be rendered as CheckBox to be checked and unchecked,
* to render also a three state CheckBox in the closed DropDown in order to select / unselect all.

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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.