我正在尝试使用以下代码更改Windows Phone应用程序页面的背景颜色
(App.Current.Resources["PhoneAccentBrush"] as SolidColorBrush).Color = Colors.Red; //For Changing the Accent Color
(App.Current.Resources["PhoneBackgroundBrush"] as SolidColorBrush).Color = Colors.White; //For Changing the Backgroung Color
应用程序的Accent颜色已成功更改,但我的应用程序背景色未更改。请帮我这个吗?
在App.xaml.cs中的InitializePhoneApplication方法中,尝试将RootFrame对象的“背景属性”更改为所需的颜色。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句