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

Moving objects pans the map

1 Answer 46 Views
Map
This is a migrated thread and some comments may be shown as answers.
Jason D
Top achievements
Rank 1
Veteran
Jason D asked on 16 Oct 2013, 05:47 PM
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?

1 Answer, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 18 Oct 2013, 03:13 PM
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 >>
Tags
Map
Asked by
Jason D
Top achievements
Rank 1
Veteran
Answers by
Andrey
Telerik team
Share this question
or