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 WalkEntryPageViewModel using C#

Now that we have updated our WalkEntryPage user interface to include our ActivityIndicator, as well as made some changes to the code-behind file for the SaveWalkItem_Click method, we can now proceed to update the WalksEntryPageViewModel class so it can use our AzureDatabase property to save walk entries to our SQL Server database.

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

  1. Locate and open the WalkEntryPageViewModel.cs file, which is located in the ViewModels folder, and ensure that it is displayed within the code editor. Enter the following highlighted code sections:
    //    //  WalkEntryPageViewModel.cs    //  The ViewModel for our WalkEntryPage ContentPage // ...

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