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

Était-ce utile?

La solution

In code behind:

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

In XAML:

{StaticResource PhoneForegroundColor}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top