Creating and implementing the NavigationService class

In this section, we will take a look at how to create the NavigationService class, which will inherit from our INavigationService interface and implement the underlying instance methods that we declared within our interface class to help navigate between our ViewModels.

Let's start by creating the NavigationService class for our TrackMyWalks app by performing the following steps:

  1. Ensure that the TrackMyWalks solution is open within the Visual Studio for Mac IDE.
  2. Next, right-click on the Services folder, and choose Add|New File... from the pop-up menu.
  3. Then, choose the Empty Class option under the General section and enter NavigationService for the name of the class to be created, as shown ...

Get Mastering Xamarin UI Development - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.