0

I have been trying to do this with the AutoCompleteBox tool in the WPF Tool Kit. What event would best be used if I wanted to display information from a database based on what the user enters?

Drew
  • 2,601
  • 6
  • 42
  • 65

1 Answers1

1

Try handling the Populating event as per the following:

WPF: AutoComplete TextBox, ...again

Community
  • 1
  • 1
ColinE
  • 68,894
  • 15
  • 164
  • 232
  • thanks! i had been referring to that article. However, when I try to access my AutoComplete box anywhere but the MainWindow function I get a "The name 'codebox' does not exist in the current context". I tried just setting it with codebox.ItemsSource = codesList; codebox.PopulateComplete(); – Drew Dec 20 '10 at 15:36