Silverlight中组合键用法举例
KeyDown事件处理函数:
private void ControlMainPage_KeyDown(object sender, System.Windows.Input.KeyEventArgs e)
{
// Ctrl+S
if (e.Key == System.Windows.Input.Key.S && (Keyboard.Modifiers & ModifierKeys.Control) == ModifierKeys.Control)
{
//相关操作
}
}