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

ChartView with draggable annotations

1 Answer 93 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
N
Top achievements
Rank 1
N asked on 04 Feb 2013, 02:35 PM
I am adding annotations to ChartView and one of the required functionality is to drag the annotations, how can I get hold of the ChartViews Canvas inorder to use implement my own drag functionallity. If not, is there any other way to do this?

Thanks

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 07 Feb 2013, 07:10 AM
Hi,

As the all chart annotations inherit from Control, you can just use the MouseEnter/LeftButtonDown / LeftButtonUp/MouseLeave and MouseMove events to accomplish your task. Also make sure you set the IsHitTestVisible to true. I have attached a sample project demonstrating this.

I hope this helps.

Regards,
Petar Kirov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
ChartView
Asked by
N
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or