【WPF】ListBox1内嵌套ListBox2 2的滑轮滚动阻止1的滚动解决方法

      ListBox.PreviewMouseWheel += (sender, e) =>
           {
               var eventArg = new MouseWheelEventArgs(e.MouseDevice, e.Timestamp, e.Delta);
               eventArg.RoutedEvent = UIElement.MouseWheelEvent;
               eventArg.Source = sender;
               ListBox.RaiseEvent(eventArg);
           };

源 :www

posted @ 2017-11-29 16:37  oiliu  阅读(269)  评论(0编辑  收藏  举报