Reputation: 127
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
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
Reputation: 3331
set Background of the layout root like this
<Grid x:Name="LayoutRoot" Background="Black">
Upvotes: 4