Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
335
Silverlight 5 - XamDataChart - Using scroll wheel to pan.
posted

I have searched and cannot seem to find a way to override the default behavior for the scroll wheel zooming. Ideally I would be able to set via a property to set the behavior.

But I have since attempted a less ideal solution: disabling the mouse wheel while still able to utilize the vertical zoombar. I attempted to override

void OnMouseWheel(MouseWheelEventArgs e)

But it seems the chart's "OnMouseWheel" is never called and the event is deeper on a sub element within the chart.


Help is greatly appreciated,

  • 138253
    Offline posted

    Hello Will,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello Will,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I handled the Series’ MouseWheel event and the same event for the Border that holds the elements in the XamDataChart. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    xamDataChartDisableMouseWheelZooming.zip