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 WebViewController class using C#

In this section, we will begin implementing the code for our BookLibrary application that will be responsible for communicating and interacting with our Razor template pages, as well as handling the actions associated with each Razor template page. The WebViewController class will communicate with and use our BookDatabase class in order to handle the addition, retrieval, and deletion of book items.

Let's start by updating the WebViewController.cs by going through the following steps:

  1. Locate and open the WebViewController.cs file, which is located in the BookLibrary project, and ensure that it is displayed within the code editor. Enter the following highlighted code sections:
    // // WebViewController.cs ...

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