ChartView with draggable annotations

2 posts, 0 answers
  1. N
    N avatar
    21 posts
    Member since:
    May 2012

    Posted 04 Feb 2013 Link to this post

    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?


  2. Petar Kirov
    Petar Kirov avatar
    425 posts

    Posted 07 Feb 2013 Link to this post


    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.

    Petar Kirov
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top