Free ebook: Creating Mobile Apps with Xamarin.Forms, Preview Edition

Creating Mobile Apps with Xamarin.Forms, Preview EditionThe final version of this ebook is now available; download the final version here.

Greetings! To help celebrate the Xamarin Evolve conference, we’re happy to release a free ebook today: Creating Mobile Apps with Xamarin.Forms, Preview Edition: Cross-platform C# programming for iOS, Android, and Windows Phone, by Charles Petzold. This ebook was created jointly by Xamarin and Microsoft Press.

This Preview Edition ebook is about writing applications for Xamarin.Forms, the new mobile development platform for iOS, Android, and Windows Phone unveiled by Xamarin in May 2014. Xamarin.Forms lets you write shared user-interface code in C# and XAML (the eXtensible Application Markup Language) that maps to native controls on these three platforms.

This ebook is a Preview Edition because it's not complete. It has only six chapters. We anticipate that the final version of the book will have at least half a dozen additional chapters and that the chapters in this Preview Edition might be fleshed out, enhanced, or completely reconceived. The final edition of the book will probably be published in the spring of 2015.

Here’s an excerpt from the ebook’s Introduction, with greater detail:

Who should read this book

This ebook is for C# programmers who want to write applications for the three most popular mobile platforms: iOS, Android, and Windows Phone with a single code base. Xamarin.Forms also has applicability for those programmers who want eventually to use C# and the Xamarin.iOS and Xamarin.Android libraries to target the native application programming interfaces (APIs) of these platforms. Xamarin.Forms can be a big help in getting started with these platforms or in constructing a prototype or proof-of-concept application.

This ebook assumes that you know C# and have some familiarity with the use of the .NET Framework. However, when discussing some C# and .NET features that might be somewhat new to recent C# programmers, the ebook adopts a somewhat slower pace. In particular, the introduction of the async keyword and await operator in Chapter 3 follows a discussion that shows how to do asynchronous programming using traditional callback methods.

Organization of this book

This book is intended as a tutorial to learn Xamarin.Forms programming. It is not a replacement for the online API documentation, which can be found here under the heading Xamarin.Forms Framework on this page:

This Preview Edition's Chapter 1 discusses Xamarin.Forms in the larger context of mobile development and the Xamarin platform and also covers the hardware and software configurations you'll need. Chapter 2 explores some of the basics of Xamarin.Forms programming, including the use of Label, Button, and StackLayout.

In Chapters 3 and 4, however, I tried to do something a little different: These chapters show the progressive step-by-step development of a small Xamarin.Forms application. Despite the simplicity of this program, it is in many ways a "real" application, and requires essential real-app facilities such as file I/O and application lifecycle handling, both of which turned out to be somewhat more challenging than I originally anticipated. I'm curious to hear whether these two chapters "work" or not. See the section below on submitting feedback to us.

Chapters 5 and 6 return to more conventional API tutorials. My biggest regret is that I wasn't able to get some coverage of XAML into this Preview Edition. However, the Xamarin website has some additional resources for learning Xamarin.Forms including a six-part "XAML for Xamarin.Forms" document:


Comments (27)
  1. Nk54 says:

    Thanks a lot ! Will read it asap 🙂

  2. mjtpena says:

    Sweet! Thanks!

  3. Ahmad says:

    Thanks again Microsoft

  4. Manish Thouri says:

    Excellent, seems like worth reading. I am happy that Microsoft has something which is catering successfully with all prevailing mobile OSes.

  5. Dev-List says:


    This is my free book recommendation for next week's DevList:…/110

  6. it is difficult to configure Xamarin over win 8.1, let me see how the author describe the configuration and installation chapter !

  7. Jase says:

    Thank you MS for providing these free eBooks.

  8. Urmit says:

    Thanks a lot for publishing book…..(free)

  9. Arnstein Johansen says:

    Just in time 🙂 I'm having a talk about xamarin forms next week, this was just what I needed, thnx MS 😉

  10. Junbin Duan says:

    Thanks for recommending so many books…

  11. Marcelo says:

    Days ago I was fortunate to attend a conference in Uruguay (.Net Conf) and I could hear Jaime Rodriguez discuss: Tips & tricks for sharing C # code on iOS, Android and Windows Phone, really very good.

    Thanks for publishing the book Xamarin.

  12. Thanh says:

    Thank you so much. It's so interesting just by a first glance. 😉

  13. an phu says:

    no epub love?

  14. KimSpilker says:

    @An phu – yes, epub will be coming soon. It's not ready yet.

  15. Mr Myiagi says:

    Nice book, but i want the rest of the chapters now! 🙁

  16. Dilshod says:

    Thank you MS for providing these free eBooks.

  17. Milen Pavlov says:

    Thanks a lot

  18. Sivarama Krishnan (kvsrkrishnan) says:

    I saw this just a few days ago in #TechEdIndia 2014 and it was just what I wanted. Thanks a lot. Thank you #Xamarin.

  19. SP Technolab says:

    Thank you so much for sharing such a great book for best cross platform C# programmers. please also read about corona sdk clik here :…/corona-app-development.html

  20. Marvin says:

    would be great if other languages were added too, lets say for instance,java and C++ because now this means that i'll have to learn C# to code apps in my case.

  21. Dux says:

    Hi i have some problem in dowmloading would you send to my mail

  22. hazan luck says:

    good you will always be aweasome

  23. ubii says:

    how to download this book

  24. ubii: You can download the latest edition of this book here:

  25. Ross Hetzel says:


  26. Pat redman says:

    I required DS-60 a few weeks ago and was made aware of an online service that hosts an online forms library . If you are searching for DS-60 too , here’s a

Comments are closed.

Skip to main content