-
Notifications
You must be signed in to change notification settings - Fork 26
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 request: customize suggestions order #2
Comments
Hello. Your suggestion looks good! Thank you. |
Take a look:
Here we got 2 filters. |
I think public virtual Func<object, double> Priority(string query, Func<object, string> text)
{
return item =>
{
if (filter1(query, text)(item)) return 0;
if (filter2(query, text)(item)) return 1;
return double.MaxValue;
};
} I'm facing a problem that there is no way to sort
I don't choose (A) because it's inefficient and difficult to use. I have hesitation in implementing (B). Hmm... |
I'm sorry, but I can't dig deep into |
vain0, thank you for this piece of code. ComboBox is brilliant and perfectly works out-of-box.
I offer to improve suggestions orger. For example:
Text input:
it
Current result:
Result requested: strings starting with
it
placed on the top of list:Is there a way to add such tweak?
The text was updated successfully, but these errors were encountered: