Creating the view model for a page
Let's start by creating the view model for a default page within the automatically generated project. This requires a set of steps, including the installation of the additional package using the NuGet Package Manager, creating suitable directories in the project, and defining some classes. All of these steps are explained in detail in this recipe.
Note
The content of this recipe also performs a very important role in the subsequent recipes in this chapter. The set of steps allows you to prepare the custom configuration of the MVVM design pattern, which will be used for further examples as well.
Getting ready
To step through this recipe, you need only the automatically generated project.
How to do it...
To create the view model for a default page, perform the following steps:
- Install
PropertyChanged.Fody
using the NuGet Package Manager. To do so, refer to the following steps:- Choose Manage NuGet Packages... from the context menu of the project node...