您好我想将Bing Map放在第一个HubSection中,但是我得到一个非常小的包含地图的框而不是整个部分。
<HubSection Width="780" Margin="0,0,80,0">
<DataTemplate>
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<bm:MapCredentials="key" x:Name="myMap" MapType="Aerial" ZoomLevel="9.5">
<bm:Map.Center>
<bm:Location Latitude="35.1" Longitude="33.33333333" />
</bm:Map.Center>
</bm:Map>
</Grid>
</DataTemplate>
答案 0 :(得分:2)
对于仍然对此感兴趣的任何人,我找到了解决方案:
<HubSection Width="1000" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
<DataTemplate>
<bm:Map Credentials="INSERT_YOUR_BING_MAPS_KEY" x:Name="myMap"></bm:Map>
</DataTemplate>
</HubSection>
毕竟
并不是那么难