user2707185
user2707185

Reputation:

How to change TextBox's Background color for the "Not selected state"?

I can change the background color for my TextBox and PasswordBox in the XAML in my Windows Phone 8.1 project. But I noticed that when the TextBox and PasswordBox is in the "not selected state" (when I'm not typing in it) it has a light gray color.

Is there a way to change the light gray color to be white?

Here the TextBox is unselectedHere the TextBox is selected

Upvotes: 0

Views: 329

Answers (1)

Igor Ralic
Igor Ralic

Reputation: 15006

In App resources, override the following the properties:

<x:Double x:Key="TextControlBackgroundThemeOpacity">1.0</x:Double>
<x:Double x:Key="TextControlBorderThemeOpacity">1.0</x:Double>

Upvotes: 1

Related Questions