【发布时间】:2018-04-12 07:18:28
【问题描述】:
我正在使用 WPF C# 应用程序,当按下键盘上的箭头键时,我需要执行一些操作,例如:
private void Window_KeyDown(object sender, KeyEventArgs e)
{
// Here I gotta check is that arrow key down which invoked this event.. then call a method
DoSomething();
}
我根本无法在 wpf 中弄清楚如何检测向下箭头键.. 任何形式的帮助都会很棒!
谢谢!
【问题讨论】: