我想将整个应用程序中的重点颜色更改为自定义颜色。
目前它正在出现在“设置”中选择的任何内容
还需要更改页面的默认背景颜色
问问题
2606 次
1 回答
2
你可以把它放在App.xml.cs
构造函数中
//This will change the default accent color
(App.Current.Resources["PhoneAccentBrush"] as SolidColorBrush).Color = Colors.Green;
//This will change the default background color for pages
(App.Current.Resources["PhoneBackgroundBrush"] as SolidColorBrush).Color = Colors.White;
//other code
同样,您可以更改Windows Phone 的主题资源中
指定的其他画笔/颜色
于 2013-06-14T06:53:11.253 回答