Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] ComboBox support for multiple selection mode (Dropdown/Select) #15973

Open
LazaroOnline opened this issue Jun 10, 2024 · 2 comments
Open

Comments

@LazaroOnline
Copy link

LazaroOnline commented Jun 10, 2024

Is your feature request related to a problem? Please describe.

A multi selection combo-box is usually part of UI framework's base components,
here are some examples from other UI frameworks:

Describe the solution you'd like

Add an option to the ComboBox to make it multi selection by accepting 2 new properties: SelectedItems and MultipleSelection.

<ComboBox ItemsSource="{Binding MyOptionList}" SelectedItems="{Binding MySelectedItemList}" MultipleSelection="true">

The dropdown should display checkboxes next to each item to show which ones are selected or not.

About the new properties, I find "MultipleSelection" being a boolean more user friendly and easier to discover, but given other existing implementations in avalonia it might tempt you to use: SelectionMode="Multiple", but that makes it harder to figure out the keyword "Multiple" when we just need a boolean and everyone is familiar with "true/false".

Describe alternatives you've considered

No response

Additional context

No response

@LazaroOnline
Copy link
Author

LazaroOnline commented Jun 10, 2024

Related to this other doc issue

@workgroupengineering
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants