Published On Feb 23, 2022
In this video you'll see how to switch your app Theme (Light/Dark).
Chapters:
00:00 Intro
00:30 Creating a WinUI3 app project
01:14 Adding RadioButtons for the Theme selection
02:10 Installing NuGet packages for Dependency Injection
02:21 Microsoft.Extensions.DependencyInjection NuGet package
02:32 CommunityToolkit.Mvvm NuGet package
02:45 Creating MainWindow's ViewModel class
02:56 Configurating Community Toolkit Ioc class
04:10 Using Community Toolkit Ioc class
04:25 Implementing MainWindow's ViewModel class
06:15 Using MVVM ObservableObject
06:53 x:Bind Mode=OneTime tip
07:16 Parsing to enum ElementTheme
08:12 Implementing ThemeSelectorService
10:47 Setting ThemeResource ApplicationPageBackgroundThemeBrush
12:58 Ending
GitHub:
https://github.com/AndrewKeepCoding/S...
Twitter:
/ andrewkeepcodin
#winui3 #xaml #mvvm