Updating the App.xaml class to use the navigation service

Now that we have successfully updated each of our ViewModels and ContentPages to take advantage of our NavigationService so that our ViewModels will be able to navigate to each ViewModel and ContentPage within the navigation stack, the next step is to make some additional changes within our OnStart method. We do this in order to declare a NavService property that will be used to navigate between each of our ViewModels, as well as create an instance of our navigation service class.

Finally, we will see how to register each of our ViewModels and ContentPages on our navigation stack and check to see what Target OS Platform we are running on so that we can call the appropriate NavigationPage ...

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.