Windows phone 7 在弹出窗口上显示bingmap
我使用此代码在弹出窗口中显示usercontrolWindows phone 7 在弹出窗口上显示bingmap,windows-phone-7,bing-maps,Windows Phone 7,Bing Maps,我使用此代码在弹出窗口中显示usercontrol <Grid x:Name="ContentPanel" Grid.Row="0" Margin="0,0,0,0"> <map:Map Width="450" x:Name="Map" CredentialsProvider="map credential" > <map:Map.Mode> <map:RoadMode /&g
<Grid x:Name="ContentPanel" Grid.Row="0" Margin="0,0,0,0">
<map:Map Width="450" x:Name="Map" CredentialsProvider="map credential" >
<map:Map.Mode>
<map:RoadMode />
</map:Map.Mode>
<map:Pushpin x:Name="Pin" Style="{StaticResource PushpinControlTemplateBlue1}" IsHitTestVisible="True" IsEnabled="True">
<toolkit:GestureService.GestureListener>
<toolkit:GestureListener DragDelta="Pushpin_OnDragDelta" DragStarted="Pushpin_OnDragStarted" DragCompleted="Pushpin_OnDragCompleted">
</toolkit:GestureListener>
</toolkit:GestureService.GestureListener>
<map:Pushpin.RenderTransform>
<TranslateTransform></TranslateTransform>
</map:Pushpin.RenderTransform>
</map:Pushpin>
</map:Map>
</Grid>
当我为页面尝试相同的代码时,会显示地图,但对于弹出窗口,不会显示地图
有人能帮我吗。你不应该在弹出窗口中显示Bing地图。这是一个非常繁重的控制,需要大量的交互 如果您真的想显示地图,您应该显示Bing地图web服务中的静态图像,或者完全锁定控件,这样它就不支持用户交互 一般来说,您应该避免在Windows Phone上使用弹出窗口,因为它提供了糟糕的用户体验。使用手机内置的地图系统显示给定的位置