How can I tell in my code what “theme” the phone is on (i.e. Light or Dark)?
UPDATE:
OK, after doing a little more research I was able to find something that appears to do what I need. However, maybe there is a better way?
Thoughts?
Here is what I found that answers my question for now:
var backColor = Resources["PhoneBackgroundColor"];
In the early beta releases the way to do this was checking the RGB values of PhoneBackgroundColor just as pointed out by others here. However this has changed.
Now the preferred way of doing this is checking the Visibility of “PhoneLightThemeVisibility” as such (even though checking RGB values still work):
HTH