In this section, we will take a look at how to create the BaseViewModel class that will essentially be an abstract class containing basic functionality that each of our ViewModels will inherit from and implement the INotifyPropertyChanged interface. The advantage of creating a BaseViewModel class is that it is much easier to add additional functionality to this model, and then implement these in the relevant class files.
Let's start by creating the BaseViewModel class for our TrackMyWalks application by performing the following steps:
- Ensure that the TrackMyWalks solution is open within the Visual Studio for Mac IDE.
- Next, right-click on the TrackMyWalks project, and choose Add | New Folder from ...