문제

I have a bing maps control in my WP app, but it only covers like half the screen, how can I set it to fit the entire screen? setting the height doesn't work.

There really isn't much to share, here is my code :

 xmlns:my="clr-namespace:Microsoft.Phone.Controls.Maps;assembly=Microsoft.Phone.Controls.Maps"  


<my:Map ZoomBarVisibility="Collapsed" x:Name="map" Height="490">

however changing the height over "490", increases the map area, but not the map itself, so anything beyong 490 is only black and not map

올바른 솔루션이 없습니다

다른 팁

Looks like you are developing for WP7. WP7 uses Bing Maps (Microsoft.Phone.Controls.Maps). WP8 uses a different map control (Microsoft.Phone.Maps.Controls).

In any case, put your map inside of a Grid. The map will stretch to fill the grid. Remove the height value unless to you want to limit the height of the map.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top