Question

Depending on the phone brand, windows phone users can choose between more or less twenty colors. When they do, it directly changes the color of the main tiles. Since this setting must be stored somewhere, I was wondering if we could get access to it.

What I'd like to do, is a way to set this preference as a ressource for my app. That way, anytime a user change his color theme, the next time he opens the app, it will automatically be colored like his phone.Thanks in advance

Was it helpful?

Solution

In code behind:

PhoneApplicatonPage pap = new PhoneApplicationPage();
pap.Resources["PhoneForegroundColor"]).ToString();

In XAML:

{StaticResource PhoneForegroundColor}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top