private void AutoCompleteTextBox_KeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { Search(SearchBox.Text); } }