Ejemplo n.º 1
0
 private void SearchComboBox_OnKeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter && SelectedItem != null)
     {
         SelectionConfirmed?.Invoke(this, e);
     }
 }
Ejemplo n.º 2
0
 private void PART_EditableTextBox_OnLostFocus(object sender, RoutedEventArgs e)
 {
     Console.WriteLine(@"lost focus");
     Dispatcher.BeginInvoke(new Action(() => SearchComboBox.IsDropDownOpen = false));
     if (SelectedItem != null)
     {
         SelectionConfirmed?.Invoke(this, e);
     }
 }