How to make pushpin draggable in wpf bingmap
-
Wednesday, March 28, 2012 10:53 AM
Hi
I am working on bingmap wpf. I have created pushpins on click event of mouse. Now I need to make it draggable and track the coordinate as per the pushpin location. Anybody has any idea on how to make the pushpin draggable and in which function we need to write code to update when it is released.
Thank you very much in advance
- Moved by Min ZhuMicrosoft Contingent Staff Friday, March 30, 2012 8:38 AM (From:Windows Presentation Foundation (WPF))
All Replies
-
Monday, April 02, 2012 7:39 AMOwner
A lot of the code samples from the Silverlight control port over nicely to the WPF control. Try the following article to see if it does what you are looking for: http://pietschsoft.com/post/2010/05/30/Draggable-Pushpins-using-Bing-Maps-Silverlight-Control.aspxhttp://rbrundritt.wordpress.com
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Monday, April 02, 2012 9:14 AM
-
Monday, April 16, 2012 12:40 PM
Hi Richard,
Thank you for the link. I tried to implement similar type in WPF as well but could not find the event like silverlights "MapMouseDragEventArgs" in WPF.Do you have any idea on it.
or Is there any way to implement the code of silverlight in wpf.
Thank you very much
-
Tuesday, August 21, 2012 8:31 AM
Hi,
Did you get this working in WPF?
Thanks!
-
Tuesday, August 21, 2012 10:10 AMOwnerYou can use the Mouse Move event on the map and keep track of if the map is being dragged or not by using a flag of if the mouse button is down or not. (use mouse up and down events).
http://rbrundritt.wordpress.com

