Cross-platform UI Development with Xamarin.Forms

Create a fully operating application and deploy it to major mobile platforms using Xamarin.Forms

Cross-platform UI Development with Xamarin.Forms

This ebook is included in a Mapt subscription
Paul F. Johnson

2 customer reviews
Create a fully operating application and deploy it to major mobile platforms using Xamarin.Forms
$0.00
$35.99
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784391195
Paperback330 pages

Book Description

Xamarin is an IDE used for the development of native iOS, Android, and Windows, and cross-platform mobile applications in C#. For the mobile developer, that means learning three different languages to create the same application. Even if you use the Xamarin toolchain, you still need to work with three different user interface construction sets. Xamarin is essentially a container in which developers can write any application in C# and use the Xamarin compiler to package and deploy on Android, iOS, or Windows platforms. To top this, Xamarin.Forms plays the role of a single codebase for mobile applications.

This book will show you, with fully-coded examples, how to use both the Xamarin toolchain and the Xamarin.Forms library to code once for the three platforms. It goes from the concept and design of a mobile messenger application to its execution. You will be introduced to Messenger—the messaging app—which includes key features such as push notifications, UI, maps, databases, and web services. Next, you will learn to plan the UI using Xamarin.Forms for cross-mobile platform development, and move on to creating custom buttons, extending the UI, and connecting to social sites such as Facebook and Twitter.

You will also learn about the limitations of PCL libraries and how they make coding easier. This will be followed by the creation of a SQLite database and a database manager, and the SQLite database’s reflection within the database manager. You will then be taken through the use of hardware features with ample coverage of iOS, Android, and Windows Mobile. Finally, the book will conclude by introducing common strategies that allow you to create applications that “just work” without having to reinvent the wheel each time.

Table of Contents

Chapter 1: In the Beginning…
Application planning
Summary
Chapter 2: Let's Get the Party Started
What is Xamarin Forms?
Instantiating Xamarin Forms within an app
Dependency injection
Customizing the UI
Gestures, maps, and WebViews
Summary
Chapter 3: Making It Look Pretty and Logging In
Introducing the standard UI login experience
Summary
Chapter 4: Making Your Application Portable
PCLs – the pros and cons
Writing your PCL library
Other options for PCL
Summary
Chapter 5: Data, Generics, and Making Sense of Information
A history lesson
.NET generics
LINQ me up baby – yeah!
The database helper class
Too much information!
Summary
Chapter 6: A View to a Kill
Touch-a-touch-a-touch me
Summary
References
Chapter 7: Connect Me to Your Other Services
Let's take a REST
The Windows Communication Framework
Summary
References
Chapter 8: What a Bind!
A bit of a history lesson
Binding the mobile arena
Summary
Chapter 9: Addressing the Issue
Addressing issues
Summary
Chapter 10: This is the World Calling…
Using GPS and push notifications
Summary
Chapter 11: A Portable Settings Class
The native platform storage
Constructing a persistent and cross-platform settings system
Is there an alternative?
Summary
Chapter 12: Xamarin Forms Labs
What is Xamarin Forms Labs?
Summary
Chapter 13: Social Media into the Mix
Connect me up, Scotty
Setting up the event system and interface
Setting up your Android code
Setting up iOS
Setting up Windows Phone
Adding social media to your app
OAuth1 for Twitter
Using OAuth2
The user interface
Summary
References
Chapter 14: Bringing It All Together
Setting up Azure
Setting up the application
The Azure Storage
The messenger application
And that's it!
Summary

What You Will Learn

  • Create a responsive UI, modified to suit the target platform
  • Understand the basics of designing an application, and the considerations needed for target platforms
  • Construct a complete app using a single codebase
  • Develop attractive user interfaces
  • Bind information to the code behind to generate a reactive application
  • Design an effective portable class library (PCL)
  • Include a Windows Mobile application within your standard Xamarin.Forms application
  • Extend your applications using the Xamarin.Forms Labs library

Authors

Table of Contents

Chapter 1: In the Beginning…
Application planning
Summary
Chapter 2: Let's Get the Party Started
What is Xamarin Forms?
Instantiating Xamarin Forms within an app
Dependency injection
Customizing the UI
Gestures, maps, and WebViews
Summary
Chapter 3: Making It Look Pretty and Logging In
Introducing the standard UI login experience
Summary
Chapter 4: Making Your Application Portable
PCLs – the pros and cons
Writing your PCL library
Other options for PCL
Summary
Chapter 5: Data, Generics, and Making Sense of Information
A history lesson
.NET generics
LINQ me up baby – yeah!
The database helper class
Too much information!
Summary
Chapter 6: A View to a Kill
Touch-a-touch-a-touch me
Summary
References
Chapter 7: Connect Me to Your Other Services
Let's take a REST
The Windows Communication Framework
Summary
References
Chapter 8: What a Bind!
A bit of a history lesson
Binding the mobile arena
Summary
Chapter 9: Addressing the Issue
Addressing issues
Summary
Chapter 10: This is the World Calling…
Using GPS and push notifications
Summary
Chapter 11: A Portable Settings Class
The native platform storage
Constructing a persistent and cross-platform settings system
Is there an alternative?
Summary
Chapter 12: Xamarin Forms Labs
What is Xamarin Forms Labs?
Summary
Chapter 13: Social Media into the Mix
Connect me up, Scotty
Setting up the event system and interface
Setting up your Android code
Setting up iOS
Setting up Windows Phone
Adding social media to your app
OAuth1 for Twitter
Using OAuth2
The user interface
Summary
References
Chapter 14: Bringing It All Together
Setting up Azure
Setting up the application
The Azure Storage
The messenger application
And that's it!
Summary

Book Details

ISBN 139781784391195
Paperback330 pages
Read More
From 2 reviews

Read More Reviews