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

Implement ItemsControl.IsTextSearchEnabled #6086

Closed
Royce551 opened this issue Jun 17, 2021 · 4 comments · Fixed by #6210
Closed

Implement ItemsControl.IsTextSearchEnabled #6086

Royce551 opened this issue Jun 17, 2021 · 4 comments · Fixed by #6210
Labels
enhancement help-wanted A contribution from the community would be most welcome.

Comments

@Royce551
Copy link
Contributor

Is your feature request related to a problem? Please describe.
In WPF and most other Windows apps, you can type in lists to select the first entry that matches what you typed. This doesn't appear to be possible in Avalonia.

@maxkatz6
Copy link
Member

I think you are looking for AutoCompleteBox, which is basically drop down control with search input.
Simpler ComboBox also has IsTextSearchEnabled property, but it does not provide text input box.

@Royce551
Copy link
Contributor Author

Hi, thanks for the quick response! Sorry, I might not have been clear enough. The feature I'm talking about is a hidden shortcut for quickly navigating long lists, similar to this:

NJlnRBaYPY.mp4

@maxkatz6
Copy link
Member

maxkatz6 commented Jun 17, 2021

Oh, I got it. You need something similar to ItemsControl.IsTextSearchEnabled.
Since we already have it for ComboBox only, it should be easier to add it to abstract ItemsControl.

I don't think it will be easy to add "TextSearch.TextPath" or equivalent though, since we need always prefer compile time properties without using reflection over property name.

@maxkatz6 maxkatz6 changed the title "Type to search" in lists Implement ItemsControl.IsTextSearchEnabled Jun 17, 2021
@maxkatz6 maxkatz6 added the help-wanted A contribution from the community would be most welcome. label Jun 17, 2021
@maxkatz6
Copy link
Member

maxkatz6 commented Jun 17, 2021

Meanwhile it shouldn't be hard to create your own implementation of ListBox that will listen for TextInput

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement help-wanted A contribution from the community would be most welcome.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants