O'Reilly logo

Mastering Xamarin UI Development by Steven F. Daniel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required