Creating the MainView

Now that we are done with the ViewModels, let's create the skeleton code and the XAML needed for the views. The first view that we are going to create is the MainView, which is the view that will be loaded first:

  1. Create a folder named Views in the .NET Standard library.
  2. Right-click the Views folder, select Add, and then click New Item....
  3. Select Xamarin.Forms under the Visual C# Items node on the left.
  1. Select Content Page and name it MainView.
  2. Click Add to create the page:

Let's add some content to the newly created view:

  1. Open MainView.xaml.
  2. Remove all the template code below the ContentPage root node and add the ...

Get Xamarin.Forms Projects 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.