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)
            {
                        //相关操作
            }
        }

posted @ 2012-06-01 08:51  liancs  阅读(146)  评论(0编辑  收藏  举报