O'Reilly logo

Mastering Xamarin UI Development - Second Edition 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

Updating the WalksMainPageViewModel using C#

Now that we have updated our BaseViewModel class to reference our NavigationService class, which will be used and inherited by each of the ViewModels that we create, we can now proceed and start updating the WalksMainPageViewModel class so that it can use our navigation service.

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

  1. Ensure that the TrackMyWalks solution is open within the Visual Studio for Mac IDE.
  2. Open the WalksMainPageViewModel.cs class, ensuring that it is displayed within the code editor, and enter the following highlighted code sections within the code snippet:
     //     //  WalksMainPageViewModel.cs     //  The ViewModel for our WalksMainPage ContentPage     // // Created ...

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