SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

1
0

A new user to scichart needing a little guidance. I’m zooming and panning a chart succesfully using mouseWheelZoomModifier, zoomPanModifier and zoomExtentsModifier. I want to tabulate the extents of the chart after a mouse wheel zoom but cant seem to find an event which is triggered at the completion of a mouse wheel zoom. Hope you can help
Many thanks

  • You must to post comments
0
0

Hi Ian,

It’s the MouseWheelZoomModifier.PerformZoom() method which is called to do the zoom. It’s protected/virtual so if you create a derived class to MouseWheelZoomModifier you can override this method.

Also you might find it useful to override the method MouseWheelZoomModifier.OnModifierMouseWheel().

Note that this will be called once for each mouse-wheel click. There is no way in WPF to get an event of ‘stopped mousewheel altogether’ but may I suggest using a technique to throttle the event, e.g, no changes after 500ms = assume the user has stopped.

Other FAQs which you may find useful are found below:

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.