At the moment, checking the value of PhoneBackgroundColor seems to be an acceptable method of detecting a theme. You can check the value by the following code: this post .
private Color lightThemeBackground = Color.FromArgb(255, 255, 255, 255); private Color darkThemeBackground = Color.FromArgb(255, 0, 0, 0); private void DisplayState() { SolidColorBrush backgroundBrush = Application.Current.Resources["PhoneBackgroundBrush"] as SolidColorBrush; if (backgroundBrush.Color == lightThemeBackground) {
keyboardP
source share