This is a migrated thread and some comments may be shown as answers.

Cannot programmatically add/remove PanAndZoomBehavior

1 Answer 55 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Jinyan
Top achievements
Rank 1
Jinyan asked on 10 Aug 2012, 09:01 PM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 13 Aug 2012, 07:35 AM
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.

Tags
ChartView
Asked by
Jinyan
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or