Implementing the walk trail page ViewModel

In this section, we will be taking a look at the steps required to create the ViewModel for our WalksTrailViewModel so that we can obtain the walk entry information associated with the chosen walk that has been selected from the main WalksPage.

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

  1. Create a new class file within the ViewModels folder called WalksTrailViewModel, as you did in the previous section entitled Creating the WalkBaseViewModel, located within this chapter.
  2. Next, ensure that the WalksTrailViewModel.cs file is displayed within the code editor, and enter the following code snippet:
     // // WalksTrailViewModel.cs // TrackMyWalks ViewModels // // Created by Steven F. Daniel ...

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.