WPF 窗体拖转时不触发MouseLeftButtonUpEvent
时间:2014-07-09 00:03:24
收藏:0
阅读:740
解决方案:手动添加Handler,因为e.Handled这个属性是用在路由事件中的,当某个控件得到一个RoutedEvent,就会检测Handled是否为true,为true则忽略该事件。
//手动注册
this.AddHandler(MouseLeftButtonUpEvent, new MouseButtonEventHandler(UIElement_OnMouseLeftButtonUp), true);
WPF 窗体拖转时不触发MouseLeftButtonUpEvent,布布扣,bubuko.com
原文:http://www.cnblogs.com/gaobing/p/3830266.html
评论(0)