Add this code to your homepage constructor:
var v = (Visibility)Resources["PhoneLightThemeVisibility"]; Debug.WriteLine("Using " + (v == Visibility.Visible ? "light" : "dark") + " theme");
(It detects the current topic and writes to the output window what it is.)
Then launch the application, look at the output in Visual Studio, close the application, change the theme, start the application and look again. If for the first time and for the second time it says different things, then your application is not as important as you think.
Edit: It seems that this does not always work due to a Mango error. The theme remains unchanged when you switch to the application after changing the theme. Only when the user restarts the application from the list of applications to which the new theme applies.
source share