Skip to content

Is it possible to open AutoCompleteBox when its TextBox GotFocus? #19355

Answered by Philltorian
Dyikot asked this question in Q&A
Discussion options

You must be logged in to vote

The autocompletebox is a tricky beast, you can use behaviours to do what you want (there are some private methods and properties you can only access through reflection).

This example will automatically display the dropdown on focus if the autocompletebox does not have a value set.
TestAutoCompleteBehaviour.zip

An alternative to using a behaviour is to set MinimumPrefixLength="0" on the autocompletebox so that your users can press the down arrow or F4 to display the list.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Dyikot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants