摘要: 1.重写窗体的KeyDown事件Code Snippetprotected override void OnKeyDown(KeyEventArgse){if (e.Key == Key.Enter){// MoveFocus takes a TraveralReqest as its argument.TraversalRequest request = new TraversalRequest(FocusNavigationDirection.Next);// Gets the element with keyboard focus.UIElement elementWithFocus = 阅读全文
posted @ 2011-03-16 16:35 正文 阅读(2205) 评论(1) 推荐(2) 编辑