From the course: Xamarin.Forms Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Initialize Xamarin.Forms

Initialize Xamarin.Forms - Xamarin Tutorial

From the course: Xamarin.Forms Essential Training

Start my 1-month free trial

Initialize Xamarin.Forms

- [Instructor] The application in our shared library represents the Xamarin.Forms application, but remember that we're starting from iOS and Android applications, and we're going to load Xamarin.Forms in. So, if we take a look at the AppDelegate for our iOS application, just going to give us a little more screen space here, you can see that in the FinishedLaunching method two things happen. We call Xamarin.Forms.Forms.Init, and we call LoadApplication and we pass in this new app. That is our Xamarin.Forms application that we were just looking at. What the initialize does is make sure that the Xamarin.Forms libraries get a chance to hook into the iOS frameworks, and the LoadApplication initializes the Xamarin.Forms user interface inside the context of our iOS application, and that LoadApplication is coming from this base class. So, the AppDelegate has been set up here to derive from…

Contents