private void TextBox1_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { Equally.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent)); } if (e.Key == Key.Escape) { Eraser.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent)); } }
private void TextBox1_KeyUp(object sender, KeyEventArgs e) { if (e.Key == Key.Return) { Equally.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent)); } if (e.Key == Key.Escape) { Eraser.RaiseEvent(new RoutedEventArgs(ButtonBase.ClickEvent)); } }