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
450
Detect end of user interaction [MouseUp]
posted

Hi. I need to have WindowResponse.Immediate for my users, but I also need to detect changes to the visible portion of the chart (the WindowRect) so that I can preload data to the left or right of the chart in the background. In other words, if the user pans to the rightmost wxtent of the chart, I will spin off a thread to get some more data and append this to the series. Obviously, doing this in response to every ActualWindowRectChanged is going to be very expensive in terms of background processing.

So I need to be able to detect when the interaction is completed. In my case, since DefaultInteraction=DragPan, this could be as simple as detecting MouseUp, but this event is not fired if the user is dragging the zoombar.

So I would like to know (a) how do I detect all MouseUp events which relate to the user interaction, and (b) is there a better, more generic way to detect when the panning operation has completed.

Many thanks

HtD

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into you requirement and I created a sample project for you with the functionality you want. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamDataChartRangeAreaSeries.zip
Children