user3008134
user3008134

Reputation: 127

how fix the background color of a page independent of the theme in wp7?

I just want a particular page to be with white background color whatever may be the theme. How can I do that?

Thanks in advance!

Upvotes: 0

Views: 145

Answers (2)

Aju
Aju

Reputation: 806

If background disappears, then create an event handler for TextBox_GotFocus.

private void TextBox_GotFocus(object sender, RoutedEventArgs e)
    {
        var clickedUIElement = sender as TextBox;
        clickedUIElement.BorderBrush = new SolidColorBrush(Colors.Black);

    }

Upvotes: 1

A.K.
A.K.

Reputation: 3331

set Background of the layout root like this

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

Upvotes: 4

Related Questions