Moving objects pans the map

2 posts, 1 answers
  1. Jason D
    Jason D avatar
    72 posts
    Member since:
    Jan 2011

    Posted 16 Oct 2013 Link to this post

    I may be going about this the wrong way, but here's what I am doing. I have a polygon (or whatever). I want to click a vertex point, drag it, and have the polygon updated. I do this by creating a MapPinPoint for each vertex. In the MouseLeftButtonDown event for this point, I set the MouseDragMode to None. In the Map_MouseLeftButtonUp event, I set the MouseDragMode back to Drag. The problem is when I do this, the map sometimes does a pan operation based on where I originally clicked down and where I lifted up. How can I prevent this, or is there a better way to do it?
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 18 Oct 2013 Link to this post

    Hello Jason,

    You should set e.Handled = true; in the MouseLeftButtonDown and MouseLeftButtonUp event handlers.

    Regards,
    Andrey Murzov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top