Xamarin Cross-Platform Development Cookbook

A recipe-based practical guide to get you up and running with Xamarin cross-platform development

Xamarin Cross-Platform Development Cookbook

George Taskos

1 customer reviews
A recipe-based practical guide to get you up and running with Xamarin cross-platform development
Mapt Subscription
FREE
€29.98/m after trial
eBook
€27.72
RRP €39.58
Save 29%
Print + eBook
€40.99
RRP €40.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
€0.00
€27.72
€40.99
€29.98p/m after trial
RRP €39.58
RRP €40.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785880537
Paperback416 pages

Book Description

You can create native mobile applications using the Xamarin Forms platform for the three major platforms iOS, Android, and Windows Phone. The advantage of this is sharing as much code as you can, such as the UI, business logic, data models, SQLite data access, HTTP data access, and file storage across the three major platforms.

This book provide recipes on how to create an architecture that will be maintainable, extendable, use Xamarin Forms plugins to boost productivity, customize your views per platforms, and use platform-specific implementations at runtime.

We start with a simple creation of a Xamarin Forms solution with the three major platforms. We will then jump to XAML recipes and you will learn how to create a tabbed application page, and customize the style and behavior of views for each platform. Moving on, you will acquire more advanced knowledge and techniques while implementing views and pages for each platform and also calling native UI screens such as the native camera page.

Further on, we demonstrate the power of architecting a cross-platform solution and how to share code between platforms, create abstractions, and inject platform-specific implementations. Next, you will utilize and access hardware features that vary from platform to platform with cross-platform techniques. Well then show you the power of databinding offered by Xamarin Forms and how you can create bindable models and use them in XAML. You will learn how to handle user interactions with the device and take actions in particular events.

With all the work done and your application ready, you will master the steps of getting the app ready and publishing it in the app store.

Table of Contents

Chapter 1: One Ring to Rule Them All
Introduction
Creating a cross-platform solution
Creating a cross-platform login screen
Using common platform features
Authenticating with Facebook and Google providers
Chapter 2: Declare Once, Visualize Everywhere
Introduction
Creating a tabbed-page cross-platform application
Adding UI behaviors and triggers
Configuring XAML with platform-specific values
Using custom renderers to change the look and feel of views
Chapter 3: Native Platform-Specific Views and Behavior
Introduction
Showing native pages with renderers
Attaching platform-specific gestures
Taking an in-app photo with the native camera page
Chapter 4: Different Cars, Same Engine
Introduction
Sharing code between different platforms
Using the dependency locator
Adding a third-party Dependency Injection Container
Architecture design with Model-View-ViewModel (MVVM) pattern
Using the event messenger
Adding localization
Chapter 5: Dude, Where's my Data?
Introduction
Creating a shared SQLite data access
Performing CRUD operations in SQLite
Consuming REST web services
Leveraging native REST libraries and making efficient network calls
Chapter 6: One for All and All for One
Introduction
Creating cross-platform plugins
Taking or choosing photos
Getting the GPS location
Show and schedule local notifications
Chapter 7: Bind to the Data
Introduction
Binding data in code
Binding data in XAML
Configuring two-way data binding
Using value converters
Chapter 8: A List to View
Introduction
Displaying a collection and selecting a row
Adding, removing, and refreshing items
Customizing the row template
Adding grouping and a jump index list
Chapter 9: Gestures and Animations
Introduction
Adding gesture recognizers in XAML
Handling gestures with native platform renderers
Adding cross-platform animations
Chapter 10: Test Your Applications, You Must
Introduction
Creating unit tests
Creating acceptance tests with Xamarin.UITest
Using the Xamarin.UITest REPL runtime shell to test the UI
Uploading and running tests in Xamarin Test Cloud
Chapter 11: Three, Two, One – Launch and Monitor
Introduction
Using Xamarin Insights
Publishing iOS applications
Publishing Android applications
Publishing Windows Phone applications

What You Will Learn

  • Create and customize your cross-platform UI
  • Understand and explore cross-platform patterns and practices
  • Use the out-of-the-box services to support third-party libraries
  • Find out how to get feedback while your application is used by your users
  • Bind collections to ListView and customize its appearance with custom cells
  • Create shared data access using a local SQLite database and a REST service
  • Test and monitor your applications

Authors

Table of Contents

Chapter 1: One Ring to Rule Them All
Introduction
Creating a cross-platform solution
Creating a cross-platform login screen
Using common platform features
Authenticating with Facebook and Google providers
Chapter 2: Declare Once, Visualize Everywhere
Introduction
Creating a tabbed-page cross-platform application
Adding UI behaviors and triggers
Configuring XAML with platform-specific values
Using custom renderers to change the look and feel of views
Chapter 3: Native Platform-Specific Views and Behavior
Introduction
Showing native pages with renderers
Attaching platform-specific gestures
Taking an in-app photo with the native camera page
Chapter 4: Different Cars, Same Engine
Introduction
Sharing code between different platforms
Using the dependency locator
Adding a third-party Dependency Injection Container
Architecture design with Model-View-ViewModel (MVVM) pattern
Using the event messenger
Adding localization
Chapter 5: Dude, Where's my Data?
Introduction
Creating a shared SQLite data access
Performing CRUD operations in SQLite
Consuming REST web services
Leveraging native REST libraries and making efficient network calls
Chapter 6: One for All and All for One
Introduction
Creating cross-platform plugins
Taking or choosing photos
Getting the GPS location
Show and schedule local notifications
Chapter 7: Bind to the Data
Introduction
Binding data in code
Binding data in XAML
Configuring two-way data binding
Using value converters
Chapter 8: A List to View
Introduction
Displaying a collection and selecting a row
Adding, removing, and refreshing items
Customizing the row template
Adding grouping and a jump index list
Chapter 9: Gestures and Animations
Introduction
Adding gesture recognizers in XAML
Handling gestures with native platform renderers
Adding cross-platform animations
Chapter 10: Test Your Applications, You Must
Introduction
Creating unit tests
Creating acceptance tests with Xamarin.UITest
Using the Xamarin.UITest REPL runtime shell to test the UI
Uploading and running tests in Xamarin Test Cloud
Chapter 11: Three, Two, One – Launch and Monitor
Introduction
Using Xamarin Insights
Publishing iOS applications
Publishing Android applications
Publishing Windows Phone applications

Book Details

ISBN 139781785880537
Paperback416 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

C# 6 and .NET Core 1.0: Modern Cross-Platform Development Book Cover
C# 6 and .NET Core 1.0: Modern Cross-Platform Development
€ 43.18
€ 30.24
Mastering Cross-Platform Development with Xamarin Book Cover
Mastering Cross-Platform Development with Xamarin
€ 39.58
€ 27.72
Mastering C# and .NET Framework Book Cover
Mastering C# and .NET Framework
€ 38.38
€ 26.88
Xamarin Blueprints Book Cover
Xamarin Blueprints
€ 46.78
€ 32.76
Mastering Xamarin.Forms Book Cover
Mastering Xamarin.Forms
€ 26.38
€ 18.48
Functional C# Book Cover
Functional C#
€ 41.98
€ 29.40