private void OnKeyHandler(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { e.Handled = true; AddressProx.Focus(); Keyboard.ClearFocus(); } }
private void MainGrid_MouseDown(object sender, MouseButtonEventArgs e) { AddressProx.Focus(); Keyboard.ClearFocus(); }