0

My app is prefer to uses light theme of Windows Phone 7 although the the phone theme is dark. I have use the code below but it doesn't work.

        var background = (Color)Resources["PhoneBackgroundColor"];
        background.R = 240;
        background.G = 240;
        background.B = 240;
        var brushBackground = Resources["PhoneBackgroundBrush"] as SolidColorBrush;
        brushBackground.Color = background;

Please help me.

4

1 回答 1

0

使用 Jeff Wilcox 的主题管理器。 http://www.jeff.wilcox.name/2012/01/phonethememanager/

很容易使用,添加一个文件和一行代码:

ThemeManager.ToLightTheme();

而且您有一个始终使用 Light Theme 的应用程序。

于 2012-07-22T18:59:02.553 回答