private void ResponseTextBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == Key.Return) { SaveButton.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent)); } }
private void OnEnter(object sender, KeyEventArgs args) { if (args.Key == Key.Enter) { SaveButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); } }
private void OnKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { SaveButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent)); } }
private void Window_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == Key.Enter) { SaveButton.RaiseEvent((new RoutedEventArgs(ButtonBase.ClickEvent))); } }