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
665
Displaying VisibleMinimum and VisibleMaximum in XamDataChart Zoombars
posted

Hi there

Is it possible to display VisibleMinimum and VisibleMaximum while the user drags left or right Zoombar slider similar to a feature found in XamDataGrid? Can it be done in xaml without using code behind?

Thank you

Boris

Parents
No Data
Reply
  • 27093
    Verified Answer
    posted

    Hello Boris, 

    Excuse me for the late reply, I have been looking into your requirement for quite some time and it proved harder than I anticipated. Since there is no built-in functionality to provide that, I had to come up with a custom approach.  I have managed to achieve the functionality you desire by adding a couple of TextBlocks to the XamZoombar’s original template and binding them to  the protected PreviewRect proeprty of the XamDataChart. Alas I had do a simple calculation inside a IMultiValueConverter I created for the job and the result is the DataChart_thumb_tip.zip sample project I created for you. I should point out that this will only work when using the latest Service Release, since I take advantage of a fixed issue in the source code, in order to be able to provide the functionality only by using xaml. 

    Please let me know, if you require any further clarification regarding this approach.

    DataChart_thumb_tip.zip
Children