1

アプリケーション全体のアクセント カラーをカスタム カラーに変更したいと考えています。
現在、「設定」で選択されているものは何でも来て
います また、ページのデフォルトの背景色を変更する必要があります

4

1 に答える 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 に答える