
To reflect theme and accent color set in Settings app specifying custom color for some element, you have to use ThemeResource. įor color customization UWPs usually use Accent color specified by user in Settings > Personalization > Colors too. You can also set the theme of any specific FrameworkElement which is set to ElementTheme.Default by default so it inherits the theme from its parent. On older Windows 10 desktop versions it'll be Light.

If you don't set the RequestedTheme property, it will reflect the theme set in Settings > Personalization > Colors on any W10 Mobile device or W10 PC running Anniversary update and newer version.


You can specify your app's theme in the App.xaml by setting the RequestedTheme property to either one of the values (it is set to Light by default) or in in App constructor using RequestedTheme = ApplicationTheme.Light (changing it anywhere later will cause an exception to be thrown). By default, the UWP apps support two themes - Light and Dark.
