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.
The AutoCompleteBox control is useful for forms, where the user may need to select a specific item from a list of many items, but is not very suitable for cases like text searching. Ideally it would act like:
User enters a search term and presses enter, parent receives it (e.g. through an event) and does something like load a results page
User enters a search term and keys down to a suggestion, parent receives it and loads a different page
User enters a search term and clicks a suggestion, above happens
Currently,
Can't happen as in the OnKeyDown event handler the enter key is handled, so the only workaround is to subclass the control or add an event handler to SelectionAdapter.Commit
Can't happen because the enter key is handled
Can't happen because the selected item can also change if the user keys up or down on the suggestions
The alternative is to add an event handler to SelectionAdapter.Commit, which is triggered on all of the above conditions. However, I'm not a fan of this exactly since there is the potential for SelectionAdapter to change without notification to the parent. Additionally it's only initially set when TemplatedApplied is triggered.
Describe the solution you'd like
I have a commit which leverages the private OnAdapterSelectionComplete method to raise a new event, Submitted: svbnet@8940078
This accomplishes it in what I think is a more elegant way. I am not set on the name, if you have any ways to improve this then I would like to hear them.
Describe alternatives you've considered
As above, the only alternatives I have found involve adding an event handler to SelectionAdapter.Commit.
Additional context
Let me know if I'm headed down a completely wrong path here, I am raising this though as I've gotten quite far with AutoCompleteBox except for the actual interaction part.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The
AutoCompleteBox
control is useful for forms, where the user may need to select a specific item from a list of many items, but is not very suitable for cases like text searching. Ideally it would act like:Currently,
OnKeyDown
event handler the enter key is handled, so the only workaround is to subclass the control or add an event handler toSelectionAdapter.Commit
The alternative is to add an event handler to
SelectionAdapter.Commit
, which is triggered on all of the above conditions. However, I'm not a fan of this exactly since there is the potential forSelectionAdapter
to change without notification to the parent. Additionally it's only initially set whenTemplatedApplied
is triggered.Describe the solution you'd like
I have a commit which leverages the private
OnAdapterSelectionComplete
method to raise a new event,Submitted
: svbnet@8940078This accomplishes it in what I think is a more elegant way. I am not set on the name, if you have any ways to improve this then I would like to hear them.
Describe alternatives you've considered
As above, the only alternatives I have found involve adding an event handler to
SelectionAdapter.Commit
.Additional context
Let me know if I'm headed down a completely wrong path here, I am raising this though as I've gotten quite far with
AutoCompleteBox
except for the actual interaction part.The text was updated successfully, but these errors were encountered: