开发者

Set whole background image/colour in WP7

I can't seem work out (even though I have seen other apps) how to set the whole background of a WP7 page to a image or colour, lik开发者_StackOverflow社区e in Panorama for example.

If i set

  Grid x:Name="LayoutRoot" Background="#FF0079C1"

Or

<Grid.Background>
        <ImageBrush ImageSource="/images/highwaysBack.jpg" Stretch="None" />
    </Grid.Background> 

it still leaves the top info section either black or white depending on the phone setting.

Many thanks.


That's most likely the System Tray. You can hide that by setting shell:SystemTray.IsVisible="False" on your page.


Make a note that hiding the system tray isn't something you always want to do, as you're hiding info like the battery life. Only do it because you app absolutely has to, like a video game. If it's just a simpler app there shouldn't be a real neeed to hide it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜