2011-12-07 13 views
0

我正在尝试将事件处理程序附加到我的推针。谁能帮忙?这是我到目前为止有:如何将事件处理程序附加到Bing地图推针

' Retrieve the center of the current map view. 
Dim mapCenter = Map1.Center 

' Create a pushpin to put at the center of the view. 
Dim pin1 As New Pushpin() 
pin1.Background = New SolidColorBrush(Colors.Red) 

pin1.Location = New Location(52.499634, -1.705241) 

另外,如果我拖动地图,推针保持它是不是与地图移动。我如何使它随地图一起移动?

感谢

回答

0

当引脚被用于LeftMouseButtonUp事件注册窃听您可以检测。这个工作足够接近,因此对检测抽头没有明显的区别。

位置相对于主机控件。
您需要将位置设置为GeoCoordinate,以便引脚随地图一起移动。

相关问题