Now that we have a solid understanding of Xamarin.Forms, let's convert our NationalParks
app to use the new framework. For this exercise, we will follow the same app flow that we have used in the iOS app so far, meaning that we will have a list page, a detail page to view, and an edit page to add and update.
We will start by creating an entirely new project by performing the following steps:
To start with, access the File menu and navigate to New | New Solution.
In the New Solution dialog box, navigate to C# | Mobile Apps, select the Blank App (Xamarin.Forms Portable) template, enter
NationalParks
in the Name field, choose the appropriate Location value, and click on OK.Review the project structure. You will see the following pointers:
Open
AppDelegate.cs
in theNationalParks.iOS
project. Note the calls toForms.Init()
andApp.GetMainPage()
.Open
MainActivity.cs
in theNationalParks.Android
project. Note the calls toForms.Init...