Cannot programmatically add/remove PanAndZoomBehavior

2 posts, 1 answers
  1. Jinyan
    Jinyan avatar
    23 posts
    Member since:
    Jul 2012

    Posted 10 Aug 2012 Link to this post

    Hi all,

    This is reposted from another question (http://www.telerik.com/community/forums/wpf/charting-kit/panzoombars-missing-when-chart-built-from-code.aspx) for clarification.

    I am having trouble programmatically add/removing the PanAndZoom functionality for ChartView. I have tried several ways of doing it, and the problem essentially boils down to this: the only way to get pan and zoom bar to show up, I have to include it in the XAML file. Furthermore, if I ever decide to set the Pan/Zoom mode to "None" programmatically, the pan and zoom bar is gone forever, even if I set the mode back to "Both".

    Is there a work around to allow users to programmatically enable/disable pan and zooming for a given ChartView?

    Thanks,
    Jin
  2. Answer
    Ves
    Admin
    Ves avatar
    2906 posts

    Posted 13 Aug 2012 Link to this post

    Hi Jin,

    I have attached a small example to my reply in the other  forum thread.

    Best regards,
    Ves
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top