Please enable Javascript to correctly display the contents on Dot Net Tricks!

Understanding Xamarin Forms - Build Native Cross Platform Mobile Apps

  Author : Shailendra Chauhan
Posted On : 06 Mar 2017
Total Views : 1,378   
Updated On : 07 Mar 2017
 

Xamarin Forms is a part of Xamarin family to build truly native apps for iOS, Android & Windows from a single and shared code base using C#. Xamarin.Forms offers the UI controls/views which you can use to develop UI. These UI controls/view at run-time are converted to platform-specific UI controls.

For Example

A Xamarin.Forms Button view will map to an Button on Android, a UIButton on iOS and a Button on Windows Phone or Windows UWP.

Xamarin Forms UI Rendering

Xamarin Forms allows developers to declare the UI using XAML (Extensible Application Markup Language) or C# code. Using Xamarin Forms approach you can develop truely native cross platform mobile apps with shared UI and code behind code using c#.

Xamarin Forms UI

Xamarin Forms Architecture

Xamarin.Forms is an abstraction layer on the top of the Xamarin.iOS and Xamarin.Android to build shared UI using XAML or C# code. It also allows to interact with the platform specific APIs to access mobile native features.

Xamarin Forms Architecture

Environment Setup

Xamarin Forms allows you to develop truely cross platform native apps for android, iOS and windows using C#. A Xamarin forms project for Android, iOS and Windows UWP are based on theirs platform standard project structure. Xamarin forms development you can do using IDEs - Visual Studio for Windows and Xamarin Studio or Visual Studio for Mac.

Xamarin Development with Windows Machine

Note

Visual Studio for Windows need a connection with Mac machine to develop iOS apps.

Xamarin (Xamarin.iOS, Xamarin.Android & Windows) vs. Xamarin Forms

Xamarin vs. Xamarin Forms
Xamarin.iOS, Xamarin.Android & Windows
Xamarin Forms
Use separate UI per platform
Use one UI for all platforms
Use all platforms specific views for each platform
Use basic views, available on all platforms like Button, Textbox etc.
Need to learn all platform specific native UI views
No need to learn all platform specific native UI views
Takes time to develop cross platform mobile app
Faster cross platform mobile app development approach
Supports up to 60% code reuse
Supports up to 100% code reuse
Recommended where custom UI is more important than code sharing
Recommended where code sharing is more important than custom UI
Best for apps which use many platform-specific APIs
Best for apps which use little platform-specific functionality
What do you think?

Thank you for your time, I hope you enjoyed this article and found it useful. Please add your comments and questions below. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.



ABOUT AUTHOR

Shailendra Chauhan
Author, Architect, Corporate Trainer and Microsoft MVP

He is the author of some of most popular e-books which encompass technical Interview on Node.js Interview Questions and Answers, ASP.NET MVC Interview Questions and Answers, AngularJS Interview Questions and Answers and LINQ Interview Questions and AnswersKnow more...

Free Interview Books
 
COMMENTS (0)
2 JUN
Hadoop Development cum Administration (Online)

7:00 AM-9:00AM IST

Know More
28 MAY
ASP.NET Core with Angular4 Development (Classroom)

10:30 AM-11:30 AM Weekend

Know More
27 MAY
ASP.NET MVC with Angular4 Development (Classroom)

4:00 PM-5:30 PM Weekend

Know More
25 MAY
ASP.NET MVC with Angular4 Development (Online)

09:00 PM-11:00 PM IST(+5.30 GMT)

Know More
25 MAY
ASP.NET MVC with Angular4 Development (Online)

09:00 PM-11:00 PM IST(+5.30 GMT)

20 MAY
Angular2 and Angular4 Development (Online)

08:00 AM-10:00 AM IST(+5.30 GMT) Weekend

20 MAY
NodeJS with Angular4 Development (Classroom)

5:00 PM-6:30 PM Weekend

8 MAY
ASP.NET MVC with Angular4 Development (Online)

07:00 AM-09:00 AM IST(+5:30 GMT) M/W/F

2 MAY
ASP.NET Core Development (Online)

07:00 AM - 09:00 AM IST( TUS, THR)

29 APR
ASP.NET MVC with Angular2 Development (Classroom)

9:30 AM-11:00 AM

22 APR
MEAN Stack 2 Development (Classroom)

11:00 AM-12:30 PM Weekend

10 APR
Master Class ASP.NET MVC 5 with Angular2 Plus Angular4 Development (Online)

09:00 PM - 11:00 PM IST (M/W/F)

25 MAR
Xamarin Forms : Build Cross-platform Apps (Classroom)

8:00 AM-9:30AM Weekend

BROWSE BY CATEGORY
 
 
LIKE US ON FACEBOOK
 
+