Skip to content
Jasper Zanjani edited this page Aug 15, 2020 · 6 revisions

👉 XAML theme resources

Windows 10 themes ( "Light" , "Dark" , and "HighContrast" can be specified as a property of the Application element:

App.xaml

RequestedTheme="Light"

Individual elements are colors by using markup extension resource dictionaries:

Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"

Using the ThemeResource resource dictionary, you can use several colors tied to the accent color chosen by the user in Settings > Personalization > Colors:

  • SystemControlHighlightAltListAccentHighBrush
  • SystemControlHighlightAltListAccentMediumBrush
  • SystemControlHighlightAltListAccentLowBrush

Dark theme

Light theme

Clone this wiki locally