user2757047
user2757047

Reputation: 85

How to make background of my app white?

I want to set background of my app to be white.

we can change it this way:

<Grid x:Name="LayoutRoot" Background="White">

But I want to be behind of the root grid also white.

In other way, How to change phone's theme to light behind my app?

Upvotes: 1

Views: 449

Answers (2)

123 456 789 0
123 456 789 0

Reputation: 10865

<PhonePage Background="White">
 ...
</PhonePage>

Upvotes: 0

Olivier Payen
Olivier Payen

Reputation: 15268

You should use the PhoneThemeManager library:

The ThemeManager class provides static methods to be used during app initialization to force the app's resources to appear as the Dark or Light theme.

Just add ThemeManager.ToLightTheme(); in the App constructor and your app will run like if the theme was Light (white background).

Upvotes: 3

Related Questions