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 start by writing our own plumbing code for the application in the next section, let’s review some popular MVVM frameworks for WinUI.
The MVVM Toolkit
We will discuss the Windows Community Toolkit (WCT) and .NET Community Toolkit 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 Toolkit. The toolkit supports any .NET application platform, including UWP, WinUI 3, .NET MAUI, Uno Platform, WPF, and others. You can get the CommunityToolkit.Mvvm
NuGet package through the NuGet Package Manager in Visual Studio or view its details on the NuGet website, at https:...