Now that we have updated our WalkEntryPage code-behind file so that it can reference our NavigationService class so that it can navigate to our ViewModels within our navigation stack, we can now proceed and start updating the WalkTrailInfoPageViewModel class so it can use our navigation service.
Let's take a look at how we can achieve this by following these steps:
- Ensure that the WalkTrailInfoPageViewModel.cs file is displayed within the code editor and enter the following highlighted code sections within the code snippet:
//
// WalkTrailInfoPageViewModel.cs
// The ViewModel for our WalkTrailInfoPage ContentPage
//
// Created by Steven F. Daniel on 5/06/2018.
// Copyright © 2018 GENIESOFT STUDIOS. All rights reserved.
//
using System;
using System.Threading.Tasks;
using TrackMyWalks...