コード例 #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));
     }
 }
コード例 #4
0
 private void Window_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         SaveButton.RaiseEvent((new RoutedEventArgs(ButtonBase.ClickEvent)));
     }
 }