此论坛已关闭。感谢你的参与。
我在开发windows phone APP时, 希望取得桌面的背景色. (黑色 or 白色)
然后确定设置我的应用中的文本颜色深浅.
I want to get the system desktop background color , then i can set the fontColor with diffrent color in my App.
取得系统背景色,利用的是 PhoneBackgroundBrush。
在XAML中:
{StaticResource PhoneBackgroundBrush}
SolidColorBrush background = Resources["PhoneBackgroundBrush"] as SolidColorBrush;