Implementing the WalksPageViewModel

In the previous section, we built our base class ViewModel for our TrackMyWalks application. This will act as the main class that will allow our View or pages to be notified whenever changes to properties within the ViewModel have been made.

In this section, we will need to begin building the ViewModel for our WalksPage. This model will be used to store the WalkEntries, which will later be used and displayed within the ListView on the WalksPage content page.

Let's take a look at how we can achieve this by following these steps:

  1. First, create a new class file within the ViewModels folder called WalksPageViewModel, as you did in the previous section, entitled Creating the WalkBaseViewModel located within this chapter. ...

Get Mastering Xamarin UI Development now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.