Attaching handler to mousewheel event

May 14, 2012 at 3:30 PM

Hi all,

objo, good work, I love the ease with which I can plot my data with this package!


One thing am wondering about still is if it is possible to attach a handler to the use of the mousewheel. In my application I am already using the clicks and movement of the mouse, but the scrolling of a plot I would also like to use.

I've looked through the source and there you obviously use it, but I cannot find out how (if possible) I can hook into these events.

Do you have a tip where I should look? (or how to attach my handler?)

thanks in advance!

May 14, 2012 at 7:57 PM

The mouse wheel is used to zoom, so I did not include this in the plot model's events.

But for WPF/SL you can handle the mouse wheel routed event on the Plot control, I suggest using the PreviewMouseWheel event:

May 15, 2012 at 8:20 AM

Exactly the Zoom is what I also want to trigger on, to check the boundaries of one graph and update them on another too. (though I now realize that binding to the AxisChanged event will also work, as mentioned in

Thanks for the quick response!