disable mouse wheel scrolling in scrollviewer wpf
问题 In xaml code <StackPanel> <ScrollViewer> <local:CustomCanvas> </local:CustomCanvas> </ScrollViewer> </StackPanel> CustomCanvs has a zoom in/out function. But when I spin the mouse wheel in the CustomCanvas area, ScrollViewer's scrollbar works and zoom in/out don't work. And when I scroll the scrollbar of the ScrollViewer, not only CustomCanvas' zoom in/out work but also scrolling of the ScrollViewer work well. When I spin the mouse wheel, I want only zoom in/out. And when I scroll the