摘要:
客户要求所有childwindow支持 Key.Enter,Key.Escape 代替click ok/cancel btn. 用下面的方法能快速完成public class HotKeyManager { public static void RegistKeyEventHandler(UIElement control, RoutedEventHandler okHanlder, RoutedEventHandler cancelHanlder) { control.KeyDown += (s, e) => { if (e.Key == Key.Escape) { cancelHan 阅读全文
posted @ 2011-06-29 14:43
mjg
阅读(321)
评论(0)
推荐(0)

浙公网安备 33010602011771号