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
475
Using WindowResponse="Immediate" doesn't work with XamZoombar
posted

I'm trying to implement an extra horizontal XamZoombar with preview like in the sample "Chart Zoombar". But unlike the standard horizontal zoombar of the control, WindowResponse="Immediate" on the XamDataChart doesn't have any effect, if I use the extra XamZoombar.

For an example of what I mean, just add WindowResponse="Immediate" and HorizontalZoombarVisibility="Visible" to the XamDataChart named xmDataChart in ChartZoombar.xaml of the sample solution. You will see that there is immediate response while dragging the small zoombar, but there is deferred response, while dragging the preview zoombar.

What can I do to get immediate response while dragging the preview zoombar?

Or is it possible to integrate the preview into the standard horizontal zoombar?

 

TIA

Michael

  • 34810
    Verified Answer
    Offline posted

    Hello Michael,

    Thank you for your post.

    Setting WindowResponse to Immediate when using an external XamZoombar will not have any effect on the chart when modifying the level of the external XamZoombar, mainly because an external one is not really part of the chart, where the standard one is.

    To get an immediate response when using an external zoombar, understand that when a zoom is happening on the XamDataChart, it is modifying the WindowRect of that control. It is for this reason that I would recommend that you look into handling the ZoomChanging event on the external zoombar. Then, you can obtain the Range of that zoombar and set the data chart's WindowRect accordingly.

    I have attached a sample application to demonstrate the above.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer
    Infragistics Inc.
    www.infragistics.com/support

    XamDataChartExternalZoombarCase.zip