What background color is active in Windows Phone 7?

How to find out if WP7 is in dark or light mode? I would like to show different images depending on which mode is active.

+7
windows-phone-7 silverlight
source share
1 answer
Visibility v = (Visibility)Resources["PhoneLightThemeVisibility"]; if (v == System.Windows.Visibility.Visible) { // light theme is active } else { // dark theme is active } 
+9
source share

All Articles