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 WalkEntryPageViewModel using C#

Now that we have updated our WalksMainPage code-behind file so that it can reference our NavigationService class, thereby enabling it to navigate to our ViewModels within our navigation stack, we can proceed and start updating the WalksEntryPageViewModel 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 WalkEntryPageViewModel.cs file is displayed within the code editor and enter in the following highlighted code sections within the code snippet:
     //     //  WalkEntryPageViewModel.cs     //  The ViewModel for our WalkEntryPage ContentPage     //     //  Created by Steven F. Daniel on 5/06/2018. // Copyright © 2018 GENIESOFT STUDIOS. ...

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