Updating the WalkEntryPage code-behind using C#

Now that we have updated our WalkEntryPage user interface to include the various data bindings and the different binding modes for each of our EntryCell fields, the next step is to begin updating the underlying C# code within our WalkEntryPage code-behind file so that it can communicate with our WalkEntryPageViewModel. This will eventually be used to save all information entered within this page to a database and to refresh the ListView contained within our WalksMainPage.

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

Open the WalkEntryPage.xaml.cs code-behind file, ensuring that it is displayed within the code editor, and enter the following code snippet:

 // // WalkEntryPage.xaml.cs ...

Get Mastering Xamarin UI Development - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.