コード例 #1
0
 private void AnswerToTry_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Return)
     {
         ActionButton.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
     }
 }