如何从app.xaml更改文本框xaml上的背景颜色

时间:2015-01-28 08:54:09

标签: c# xaml

我使用C#和XAML创建了一个Windows Phone应用程序。

现在我要更改background-color上的textbox GotFocustextbox如何从app.xaml触发?我想编写一次代码,以便可以在我的所有{{1}} es。

中实现

我尝试过使用VisualState,但我不知道如何使用它

1 个答案:

答案 0 :(得分:1)

你检查过这个问题吗?我认为你有同样的问题

changing background color of container when textbox is in focus