You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
ComboBox strictly allows the user to select an item from a preloaded list. AutoCompleteBox allows the user to enter a few characters and see items that match, which may be the results of a live query.
But often something in between is required. In particular, the ability to either search for an item OR drop down the complete list by tapping a down-arrow-like button to select from a predefined list.
Describe the solution you'd like
The AutoCompleteBox should have the option of showing a drop down button, which shows the list when tapped. That may be the list that ItemSource is already set to, or what ItemSource is set to after Populating+PopulateComplete() or the results of AsyncPopulator. If the textbox is empty, then all results or all matches should be shown. Empty string doesn't match anything for the built in filter options, so it requires special logic to show all.
Describe alternatives you've considered
Avalonia users have achieved similar before (see below) but I think it should be in the standard control.
I used their work to create this example repository https://github.com/buzzware/AutoCompleteBoxPlay
Note that I wasn't able to get the drop list to stay down properly when the dropdown button is tapped on the AsyncPopulator example (B). There is a bug in the behavior that I haven't been able to solve.
This example repo is very hacky code and I have very little WPF or Avalonia experience, so I'd like to see a proper solution in the standard control.
buzzware
changed the title
Add a button to the right of AutoCompleteBox to show the complete list
Add a button to the right of AutoCompleteBox to show the complete list (example provided)
Apr 17, 2024
Is your feature request related to a problem? Please describe.
ComboBox strictly allows the user to select an item from a preloaded list. AutoCompleteBox allows the user to enter a few characters and see items that match, which may be the results of a live query.
But often something in between is required. In particular, the ability to either search for an item OR drop down the complete list by tapping a down-arrow-like button to select from a predefined list.
Describe the solution you'd like
The AutoCompleteBox should have the option of showing a drop down button, which shows the list when tapped. That may be the list that ItemSource is already set to, or what ItemSource is set to after Populating+PopulateComplete() or the results of AsyncPopulator. If the textbox is empty, then all results or all matches should be shown. Empty string doesn't match anything for the built in filter options, so it requires special logic to show all.
Describe alternatives you've considered
Avalonia users have achieved similar before (see below) but I think it should be in the standard control.
I used their work to create this example repository https://github.com/buzzware/AutoCompleteBoxPlay
Note that I wasn't able to get the drop list to stay down properly when the dropdown button is tapped on the AsyncPopulator example (B). There is a bug in the behavior that I haven't been able to solve.
This example repo is very hacky code and I have very little WPF or Avalonia experience, so I'd like to see a proper solution in the standard control.
Additional context
No response
The text was updated successfully, but these errors were encountered: