Smart Mirror ep 12 - XAML and theming

Опубликовано: 05 Август 2026
на канале: Coding with Amadeus
1,197
14

In the twelfth episode of Coding with Amadeusz we apply theming to the Smart Mirror app. We will swap the theme at runtime, which is very challenging on the Universal Windows Platform. Watch this video or read up the related blog post: http://amadeusw.com/xaml/uwp-cheat-sheet

Timeline:
1:04 - Change the App's theme to dark
1:50 - Style that target (almost all) TextBlocks
2:40 - Styling specific TextBlocks
4:00 - Putting SolidColorBrush in Resources
4:55 - Move styles to a separate file
7:12 - Create styles that inherit from one another
8:57 - Dynamically change theme
12:43 - Override default XAML theme
14:57 - Position UI elements with StackPanels
15:38 - Use LiveVisualTree and LivePropertyExplorer
17:59 - Wrapping up

Links:
GitHub repo - https://github.com/AmadeusW/Mirror
UWP XAML Cheat Sheet - http://amadeusw.com/xaml/uwp-cheat-sheet
Changing app theme on the fly - http://www.guruumeditations.net/chang...