1
我试图从后面的代码添加一个PushPin到Windows Phone 8中的地图。我知道如何从XAML添加图钉从Windows Phone 8中的代码映射到
<maps:Map x:Name="routeMap">
<maptk:MapExtensions.Children>
<maptk:Pushpin GeoCoordinate="22.34, 88.30" Content="My pin" />
</maptk:MapExtensions.Children>
</maps:Map>
我怎样才能做到这一点从后面的代码做到这一点?
谢谢。
This Works。有没有什么办法从后面的代码中获取MapExtensions属性并添加到该代码中? 另外,我是否需要在引脚和叠加层中指定地理坐标? – Abhishek