Пример #1
0
 private void OnKeyHandler(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         e.Handled = true;
         AddressProx.Focus();
         Keyboard.ClearFocus();
     }
 }
Пример #2
0
 private void MainGrid_MouseDown(object sender, MouseButtonEventArgs e)
 {
     AddressProx.Focus();
     Keyboard.ClearFocus();
 }