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

Differences between the Navigation and ViewModel approaches

In this section, we will take a look at the different approaches when performing navigation within your ViewModels that are contained within a Xamarin.Forms application. Whenever you navigate between your ViewModels, there are a couple of approaches you should consider before going down this path.

One approach would be to use the View (Page) navigation approach, which involves navigating to another View by using a direct reference to that page, for example, using Navigation.PushAsync(new WalksMainPage());. Alternatively, if you want to use the ViewModel approach to navigate to a View (Page) using the associated Views (Page) ViewModel, you would first need to form some sort of mapping ...

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