I have a WPF TextBox in which I want to allow autocompleting user names by pressing the tab key. The usernames are saved in a list of strings.
Is there a better way than handling the KeyDown/Up/etc events on the TextBox? This seems inefficient.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t reinvent the wheel!
you can use the following:
http://gallery.expression.microsoft.com/WPFAutoCompleteBox/ – recommended!
http://www.codeproject.com/Articles/44920/A-Reusable-WPF-Autocomplete-TextBox
http://www.codeproject.com/Articles/26535/WPF-Autocomplete-Textbox-Control
http://wpfactb.codeplex.com/