Bing Maps在Windows 8.1 ARM上推动PUSHPIN



我使用下一个代码来绑定pushpin source

<map:Map x:Name="map" ZoomLevel="9" >
    <map:MapLayer>
        <map:MapItemsControl ItemsSource="{Binding SearchResult, Converter={StaticResource InvertCollectionConverter}}" >
            <map:MapItemsControl.ItemTemplate>
                <DataTemplate>
                    <ContentControl Template="{StaticResource SearchResultPushpinTemplate}">
                        <map:MapLayer.Position >
                            <map:Location Latitude="{Binding Converter={StaticResource SearchResultToLocationConverter}, ConverterParameter='lat'}" 
                                          Longitude="{Binding Converter={StaticResource SearchResultToLocationConverter}, ConverterParameter='long'}"/>
                        </map:MapLayer.Position>
                    </ContentControl>
                </DataTemplate>
            </map:MapItemsControl.ItemTemplate>
        </map:MapItemsControl>
    </map:MapLayer>
</map:Map>

第二和所有下一个带有Bing Map Control的页面导航,清除Pushpin。如何解决此问题?

您是否尝试过...

       <map:Pushpin>
            <map:MapLayer.Position>
            <map:Location x:Name="myPinLocation" />
            </map:MapLayer.Position>
        </map:Pushpin>

相关内容

  • 没有找到相关文章

最新更新