Xamarin is built on the .NET Framework. It allows one to create apps that easily run across multiple platforms.

Using the Xamarin.Forms UI

Pages, layouts, and views make up the core of the Xamarin.Forms UI . Pages are the primary container, and each screen is populated by a single Page class.



A page may contain variations of the Layout . The purpose of pages and layouts is to contain and present views, which are controls inherited from class View. Here are the primary pages:

• ContentPage
• MasterDetailPage
• NavigationPage
• TabbedPage
• CarouselPage

Views are placed and sized by their container class, Layout. Layouts come in a variety of flavors with different features for formatting their views.Here are the main layouts:
• StackLayout
• AbsoluteLayout
• RelativeLayout
• Grid
• ScrollView
• Frame
• ContentView


Views are controls, the visible and interactive elements on a page. These range from the basic views like buttons, labels, and text boxes to the more advanced views like lists and navigation. Views contain properties to change the color, font-size and other information of the control.

Basic – fundamental views
• Label
• Image
• Button
• BoxView
• List – make a scrollable, selectable list
• ListView

Xamarin.Forms can be created for

Xamarin.Forms: Cross-platform UI code called by one of the platform-specific projects. This can be accomplished using a shared project, Portable Class Library (PCL), or shared files. The example we’ll be creating in this chapter uses a PCL.

Xamarin.Android: Android-specific code, including Android project startup.

Xamarin.iOS: iOS-specific code, including iOS project startup.

Windows Phone application: Windows Phone–specific code, including Windows Phone project startup.

Core Library: Shared app logic such as business logic and data access layer using a PCL, or a shared project.


507total visits,1visits today