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

Now, we have updated our BaseViewModel class to include a property that references our RestWebService class. Our next step is to begin updating the underlying C# code within our WalksMainPage code-behind file so that it can communicate with our RestWebService class and the associated ViewModel to populate our ListView with information from our WalkDataModel, which we will populate from our SQL Server database within the Microsoft Azure platform.

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

  1. Locate and open the WalksMainPage.xaml.cs file, which is located within the Views folder, and ensure that it is displayed within the code editor. Enter the following ...

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