📜  wpf 键盘按下事件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:56.200000             🧑  作者: Mango

代码示例1
private void MainWindow_Loaded(object sender, RoutedEventArgs e) 
  {
    var window = Window.GetWindow(this);
    window.KeyDown += HandleKeyPress;
  }