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

Combobox AutoComplete Limit SearchFunc #1690

Open
Codely2018 opened this issue Jan 23, 2025 · 0 comments
Open

Combobox AutoComplete Limit SearchFunc #1690

Codely2018 opened this issue Jan 23, 2025 · 0 comments

Comments

@Codely2018
Copy link

Describe the bug

I settted Combobox's AutoComplete true and IsEditable true, when I input a latter in the textbox, it auto setted the value matched first letters in the
Combobox's ItemSource even though the Combobox's ItemSource has many items matched the textbox's value。I thought mybe I can use the SearchFunc to solve this problem. But I found that when the textbox's matching first letters,It triggered autoComplete effect. Either it trriger the SearchFunc. Why I can not set the AutoComplete false but can use the SearchFunc ? I can't understand.

Steps to reproduce the bug

1.Set the Combobox's AutoComplete false, IsEditable true
2.Set SearchFunc =(param, p2) => {
var source = param.Cast<KeyValuePair<string, string>>();
return source.Where(k => k.Key.Contains(p2.ToString())).Select(k => k.Key).ToList();
};
3.Input some letters in Combobox's textbox, it can't trigger the SearchFunc

Expected behavior

when setting the Combobox's AutoComplete false, IsEditable true, if I set SearchFunc , It can trigger SearchFunc binding function.

Screenshots

Image

Image

Image

NuGet package version

None

IDE

No response

Framework type

No response

Windows version

No response

Additional context

No response

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

No branches or pull requests

1 participant