-
I have a hunch this is out of scope for material (since nothing seems to exist in the spec: https://m2.material.io/components/menus#dropdown-menu) in general but figured I'd ask anyways in case someone had some helpful suggestions on which direction I should take. The need: Looking for a combobox which is both multi-select and filter capable similar to the web based example below. Example: Questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It is an interesting idea that I have seen asked for a few times. The image seems to imply the user can type in the top section but I would not do that. If some sort of search/filter is desired I would put that in the popup directly rather than trying to overload the top section. |
Beta Was this translation helpful? Give feedback.
It is an interesting idea that I have seen asked for a few times.
Personally if I were to go build something, I would not try to make the ComboBox work and instead put it together from its individual pieces.
A ItemsSource with a WrapPanel for the top section that displays selection. I would do an ItemTemplate to get that pill look with the X to remove. A ToggleButton styled to look like a combo box arrow. A Popup with its IsOpen property bound to the toggle button. And an ItemsSource with a ScrollViewer inside of the popup to display the individual items. Then it would be a matter of getting things all wired.
The image seems to imply the user can type in the top section but I would not do…