Apps-On-AppExchange1

Product Discovery: Don’t Build Things Better But Build Better Things

A- Introduction Xamarin.Form is a framework which allows developers to rapidly create cross-platform user interfaces. Applications developed using such framework can be shared across various platforms which include Android, iOS, Windows, and Windows Phone. Such UI is rendered using native controls of the target platform. This implies that Xamarin.Forms applications help in retaining the apt

Xamarin.Form is a framework which allows developers to rapidly create cross-platform user interfaces. Applications developed using such framework can be shared across various platforms which include Android, iOS, Windows, and Windows Phone. Such UI is rendered using native controls of the target platform. This implies that Xamarin.Forms applicationshelp in retaining the apt look and feel of every platform.

Xamarin.Forms applications are build in the same way as traditional cross-platform applications are created. Applications which are developed using Xamarin.Forms are able to use API’s or features of platforms such as Tiles on Windows, StoreKit, CoreMotion, PassKit on iOS; NFC and Google Play Services on Android. Some common approach to developing applications using Xamarin.Forms is to use Portable Libraries or Shared Projects first in order to use the shared code and then creating a platform specific application which will consume the shared code.

B- Creating User Interfaces In Xamarin.Forms

Popularly there are two techniques to create user interfaces in Xamarin.Forms. First is to create user interfaces entirely with C# source code, the second is to use XAML (Extensible Application Markup Language). XAML is a declarative markup language which helps in describing user interfaces.

C- How to launch the Initial Xamarin.Forms Page on Each Platform?

The initialization steps to define Xamarin.Forms vary from platform to platform and is discussed in the following sections.

C1: iOS

For launching initial Xamarin.Forms page in iOS, the platform project must include the AppDelegate class that inherits from the Xamarin.Forms.Platform.iOS.FormsApplicationDelegateclass. The same is displayed below in the code:

FinishedLoading override initializes the Xamarin.Forms framework by calling the Init method. This allows iOS-specific implementation of Xamarin.Forms which can be loaded in the application before the root view controller is set by the call to the LoadApplication method.