Quantcast
Channel: Clive Ciappara's Blog » Silverlight For Windows Phone 7
Viewing all articles
Browse latest Browse all 2

Get Windows Phone 7 Theme Background Colour

$
0
0

To get the Background Colour in Windows Phone 7 as selected by the user, you need to use the following 2 lines of code:

PhoneApplicatonPage pap = new PhoneApplicationPage();

pap.Resources["PhoneBackgroundColor"]).ToString();

To check whether the theme is dark or light, maybe for the foreground colours to use, you need to check using the next if statement:

if ((pap.Resources["PhoneBackgroundColor"]).ToString() == "#FFFFFFFF")

For the foreground color check this post

References from here


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images