MVVM libraries for WinUI
When working with MVVM in WinUI applications, you must create a little infrastructure code to facilitate data binding between Views and View Models. You can either write this yourself or choose a framework that abstracts this plumbing code away from your application. Although we will be writing the plumbing code for our application in the next section, let's review some popular MVVM frameworks for WinUI before that.
Windows Community Toolkit MVVM library
We will discuss the Windows Community Toolkit (WCT) in more detail in Chapter 9, Enhancing Applications with the Windows Community Toolkit, but one of the libraries included in this open source toolkit is the MVVM library. You can get the Microsoft.Toolkit.Mvvm
NuGet package through the NuGet Package Manager in Visual Studio or view its details on the NuGet website, at https://www.nuget.org/packages/Microsoft.Toolkit.Mvvm/7.0.0.
The library includes base classes to support INotifyPropertyChanged...