문제

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

도움이 되었습니까?

해결책

In code behind:

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

In XAML:

{StaticResource PhoneForegroundColor}
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top