Dan Sewell
Dan Sewell

Reputation: 1290

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, like 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.

Upvotes: 2

Views: 3182

Answers (2)

TrueHarlequin
TrueHarlequin

Reputation: 41

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.

Upvotes: 1

Nigel Sampson
Nigel Sampson

Reputation: 10609

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

Upvotes: 7

Related Questions