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 // ...

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.