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 WalkTrailInfoPage code-behind using C#

Now that we have updated our WalkTrailInfoPageViewModel to take advantage of the NavigationService that will enable our ViewModel to navigate within the navigation stack, the next step is to begin updating the underlying C# code within our WalkTrailInfoPage code-behind file so that it will communicate with our ViewModel to allow for navigation.

Let's take a look at how we can achieve this by following these steps:

  1. Open the WalkTrailInfoPage.xaml.cs code-behind file, ensuring that it is displayed within the code editor, and enter the following highlighted code sections:
    //    //  WalkTrailInfoPage.xaml.cs    //  Displays related trail information chosen from the WalksMainPage    // // Created by ...

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