예제 #1
0
 private void ResponseTextBox_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     if (e.Key == Key.Return)
     {
         SaveButton.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent));
     }
 }
예제 #2
0
 private void OnEnter(object sender, KeyEventArgs args)
 {
     if (args.Key == Key.Enter)
     {
         SaveButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
     }
 }
예제 #3
0
 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)));
     }
 }