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

Now, we have updated our WalksMainPage code-behind file to handle deletions from the SQL Server database. Our next step is to start implementing the necessary code within the WalksMainPageViewModel class, which will be used by our WalksMainPage.

The WalksMainPageViewModel ViewModel class will be used to populate our data model from our SQL Server database by calling the GetWalkEntries on our AzureDatabase property and displaying the information within our ListView by setting the BindingContext within the ContentPage.

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

  1. Locate and open the WalksMainPageViewModel.cs file, which is located within the ViewModels folder, ...

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