Mastering Xamarin.Forms

Build rich, maintainable multiplatform native mobile apps with Xamarin.Forms

Mastering Xamarin.Forms

Ed Snider

1 customer reviews
Build rich, maintainable multiplatform native mobile apps with Xamarin.Forms
Mapt Subscription
FREE
€29.98/m after trial
eBook
€18.48
RRP €26.38
Save 29%
Print + eBook
€26.99
RRP €26.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
€18.48
€26.99
€29.98p/m after trial
RRP €26.38
RRP €26.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 139781785287190
Paperback184 pages

Book Description

Discover how to extend and build upon the components of the Xamarin.Forms toolkit to develop an effective, robust mobile app architecture. Starting with an app built with the basics of the Xamarin.Forms toolkit, we’ll go step by step through several advanced topics to create a solution architecture rich with the benefits of good design patterns and best practices.

We’ll start by introducing a core separation between the app’s user interface and the app’s business logic by applying the MVVM pattern and data binding.

Discover how to extend and build upon the components of the Xamarin.Forms toolkit to develop an effective, robust mobile app architecture. Starting with an app built with the basics of the Xamarin.Forms toolkit, we’ll go step by step through several advanced topics to create a solution architecture rich with the benefits of good design patterns and best practices.

We’ll start by introducing a core separation between the app’s user interface and the app’s business logic by applying the MVVM pattern and data binding.

Then we will focus on building out a layer of plugin-like services that handle platform-specific utilities such as navigation, geo-location, and the camera, as well as how to use these services with inversion of control and dependency injection. Next we’ll connect the app to a live web-based API and set up offline synchronization. Then, we’ll dive into testing the app—both the app logic through unit tests and the user interface using Xamarin’s UITest framework. Finally, we’ll integrate Xamarin Insights for monitoring usage and bugs to gain a proactive edge on app quality.

Table of Contents

Chapter 1: Getting Started
Introducing the app idea
Creating the initial app
Summary
Chapter 2: MVVM and Data Binding
Understanding the MVVM pattern
Adding MVVM to the app
Summary
Chapter 3: Navigation Service
The Xamarin.Forms navigation API
Navigation and MVVM
Creating a navigation service
Summary
Chapter 4: Platform Specific Services and Dependency Injection
Inversion of control and dependency injection in mobile apps
The Xamarin.Forms DependencyService versus third-party alternatives
Creating and using platform-specific services
Registering dependencies
Summary
Chapter 5: User Interface
Custom Renderers
Value Converters
Summary
Chapter 6: API Data Access
Creating an API with Microsoft Azure App Services
Creating a base HTTP service
Creating an API Data Service
Offline data caching
Summary
Chapter 7: Authentication
Adding identity and authentication to Azure Mobile Apps
Creating an authentication service
Adding a sign in page
Summary
Chapter 8: Testing
Unit testing
Automated UI testing
Summary
Chapter 9: App Analytics
Mobile app analytics and crash reporting
Xamarin Insights
Summary

What You Will Learn

  • Find out how, when, and why you should use architecture patterns and get best practices with Xamarin.Forms
  • Implement the Model-View-ViewModel (MVVM) pattern and data-binding in Xamarin.Forms mobile apps
  • Extend the Xamarin.Forms navigation API with a custom ViewModel-centric navigation service
  • Leverage the inversion of control and dependency injection patterns in Xamarin.Forms mobile apps
  • Work with online and offline data in Xamarin.Forms mobile apps
  • Test both business logic and user interface code in Xamarin.Forms mobile apps
  • Use platform-specific APIs to build rich custom user interfaces in Xamarin.Forms mobile apps
  • Explore how to improve mobile app quality with analytics and crash reporting using Xamarin Insights

Authors

Table of Contents

Chapter 1: Getting Started
Introducing the app idea
Creating the initial app
Summary
Chapter 2: MVVM and Data Binding
Understanding the MVVM pattern
Adding MVVM to the app
Summary
Chapter 3: Navigation Service
The Xamarin.Forms navigation API
Navigation and MVVM
Creating a navigation service
Summary
Chapter 4: Platform Specific Services and Dependency Injection
Inversion of control and dependency injection in mobile apps
The Xamarin.Forms DependencyService versus third-party alternatives
Creating and using platform-specific services
Registering dependencies
Summary
Chapter 5: User Interface
Custom Renderers
Value Converters
Summary
Chapter 6: API Data Access
Creating an API with Microsoft Azure App Services
Creating a base HTTP service
Creating an API Data Service
Offline data caching
Summary
Chapter 7: Authentication
Adding identity and authentication to Azure Mobile Apps
Creating an authentication service
Adding a sign in page
Summary
Chapter 8: Testing
Unit testing
Automated UI testing
Summary
Chapter 9: App Analytics
Mobile app analytics and crash reporting
Xamarin Insights
Summary

Book Details

ISBN 139781785287190
Paperback184 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
Xamarin Blueprints Book Cover
Xamarin Blueprints
€ 46.78
€ 32.76
Mastering Cross-Platform Development with Xamarin Book Cover
Mastering Cross-Platform Development with Xamarin
€ 39.58
€ 27.72
Mastering Xamarin UI Development Book Cover
Mastering Xamarin UI Development
€ 41.98
€ 29.40
ASP.NET Core and Angular 2 Book Cover
ASP.NET Core and Angular 2
€ 38.38
€ 26.88
Xamarin Essentials Book Cover
Xamarin Essentials
€ 26.38
€ 18.48