如何在 windows phone 8.1 中删除按钮周围的蓝色背景颜色

How to remove blue background color around button in windows phone 8.1

我正在为 windows phone 8.1 开发应用程序,我在我的应用程序中使用了一些背景颜色为红色的按钮。 单击按钮时出现蓝色背景色。 我想删除 windows phone 中按钮的蓝色背景颜色 当我点击按钮时出现这种背景颜色。

如何操作?

蓝色可能是 phone.So 的默认主题颜色,可以更改设计器上按钮的右键单击并编辑副本,并将处于按下状态的按钮的背景值更改为您想要的任何值。希望这对您有所帮助!

在您的 app.xaml 文件中添加以下行

<Application.Resources>
    <SolidColorBrush x:Key="ButtonPressedForegroundThemeBrush"  Color="Transparent" />
</Application.Resources>