views:

799

answers:

1

Hello all,

I am creating an application in WPF that uses the mousewheel to zoom in/out an image. The amount of zooming is based on the amount of mouse wheel turning.

The problem is that the Delta value is always 120, as explained in MSDN. So, even if I turn the wheel 1 notch or 5 notches it will always be 120. Do you know a way around this?

Thanks

+3  A: 

You should be able to handle the PreviewMouseWheel event. The delta for each event will be +/-120, but you will get one event for each "notch" of the wheel.

John Myczek