If you want your Win7 mobile application to mimic the theme/system colors your users phone is using you can do so through the the use of the Theme Resources.
For example, the color of each of the tiles in your phone is called the “Accent” color. To obtain this color simply call:
SolidColorBrush brush=Application.Current.Resources["PhoneAccentBrush"] as SolidColorBrush;
Background and Foreground colors:
background = Application.Current.Resources["PhoneBackgroundBrush"] as SolidColorBrush;
foreground = Application.Current.Resources["PhoneForegroundBrush"] as SolidColorBrush;
For more details on the other colors available see: http://msdn.microsoft.com/en-us/library/ff769552(VS.92).aspx
Thanks,
–Mike







Trackbacks/Pingbacks
[...] Windows Phone 7 theme resources Michael Snow has a quick tip on how to access the Windows Phone 7 system colors so you can make your…. [...]