0

我可以在我的Windows Phone 8.1项目中的XAML中更改我的TextBoxPasswordBox的背景色。但我注意到,当TextBoxPasswordBox处于“未选择状态”(当我没有输入时),它具有浅灰色。如何更改TextBox的“未选择状态”的背景颜色?

有没有办法将浅灰色改为白色?

Here the TextBox is unselectedHere the TextBox is selected

+0

你要么希望覆盖它的设置在风格模板状态的画笔。或者直接使用这些控件的样式模板。 – 2015-04-01 13:34:23

回答

2

在应用资源,重写以下属性:

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

非常感谢你,对于迟到的回应感到抱歉。 – Oskariagon 2015-04-08 06:04:50