Xamarin

Improve this article. Show messages.

Summary

Xamarin is a cross-platform application development framework. It allows you to develop a mobile app using C# and re-use most of the code-base across multiple platforms including Android, iOS and Windows Phone.

Milestones

1999

Miguel de Icaza and Nat Friedman start Ximian project.

2001

Mono project launched for supporting .NET applications on non-Windows platforms.

2011

Xamarin as a company was incorporated and introduced MonoTouch and MonoDroid to support cross-platform mobile app development using C#.

2016

Microsoft acquires Xamarin and releases Xamarin as part of Visual Studio suite of tools.

Discussion

  • Who created Xamarin?

    Xamarin has its roots in Ximian and Mono projects, and developed by the co-founders of Xamarin, Miguel de Icaza and Nat Friedman (who is presently the CEO of Github). In 2016, Microsoft acquired the company and continues development of Xamarin.

  • What is Xamarin?
    Intro to Xamarin for Visual Studio. Source: Xamarin, 2017.

    Xamarin is a cross-platform app development framework which is available as part of Visual Studio IDE and enables developers to build mobile apps for multiple platforms like Android, iOS and Windows Phone using C#.

  • Where can I learn more about Xamarin?

    Xamarin has excellent documentation and code samples at their website https://xamarin.com. There are free courses, mentioned in the Further Reading section. There is also a Xamarin University which provides training and certification for professional developers.

  • When to use Xamarin?

    There are many hybrid and cross-platform frameworks to develop apps across multiple platforms, but these require skills in JavaScript and is best suited for Web developers. Xamarin is best suited for developers coming from C# or Java backgrounds.

  • Why should I use Xamarin?

    Xamarin helps to expedite native mobile app development on multiple platforms. Using Xamarin.Forms more than 90% of your project is shared code and you get to build native Android, iOS and Windows Phone apps concurrently without having to build them one after another or having multiple teams with multiple skillsets and tools. Xamarin.Android and Xamarin.iOS provide further customization possibilities for developers who are looking at tweaking the app's look and feel achieved with Xamarin.Forms. There are several other benefits like Seamless API integration, easy collaboration and sharing, etc. .

  • How much does it cost to use Xamarin?

    Xamarin was initially available for a license, but after it was acquired by Microsoft in 2016, it is now bundled with the Visual Studio suite of tools for free. While Visual Studio is not completely free, there is a Community Edition, which is free for eligible companies and developers.

  • What are the pre-requisites for Xamarin app development?

    To develop the app, one should have good programming expertise in C# assuming that the RESTful APIs required for the application are already available. A Windows PC will be required for development on Android and Windows platforms. iOS development is done on Windows PC but to build the app, a Mac will be required to be connected in the same network as per Apple's requirements.

Sample Code

  • <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
                       x:Class="HelloWorld.MainPage">
        <ContentPage.Padding>
            <OnPlatform x:TypeArguments="Thickness">
                <On Platform="iOS" Value="20, 40, 20, 20" />
                <On Platform="Android, UWP" Value="20" />
            </OnPlatform>
        </ContentPage.Padding>
        <StackLayout>
          <Label Text="Hello World" />
        </StackLayout>
    </ContentPage>
     
     

References

  1. Perception System. 2017. "9 Reasons to choose Xamarin for Mobile App development". Accessed 2018-06-24.
  2. Scott Guthrie. 2016. "Microsoft to acquire Xamarin and empower more developers to build apps on any device". Accessed 2018-06-24.
  3. Xamarin. 2017. "Introduction to Xamarin". Video, 2017. Accessed 2018-06-24.
  4. de Icaza, Miguel. 2011. "Announcing Xamarin." Blog, May 16. Accessed 2018-06-12.

Milestones

1999

Miguel de Icaza and Nat Friedman start Ximian project.

2001

Mono project launched for supporting .NET applications on non-Windows platforms.

2011

Xamarin as a company was incorporated and introduced MonoTouch and MonoDroid to support cross-platform mobile app development using C#.

2016

Microsoft acquires Xamarin and releases Xamarin as part of Visual Studio suite of tools.

Tags

See Also

Further Reading

  1. Official Xamarin website
  2. Xamarin Documentation
  3. The Xamarin Show
  4. Microsoft Virtual Academy - Xamarin course
  5. Xamarin University
  6. Pluralsight - Beginning Mobile Development with Xamarin

Top Contributors

Last update: 2018-07-20 09:07:33 by arvindpdmn
Creation: 2018-06-19 02:23:08 by sivaraj

Article Stats

485
Words
4
Chats
2
Authors
10
Edits
33
Likes
289
Hits

Cite As

Devopedia. 2018. "Xamarin." Version 10, July 20. Accessed 2018-08-14. https://devopedia.org/xamarin
BETA V0.16