Mastering Xamarin.Forms - Second Edition

Ed Snider


Key Features

  • Packed with real-world scenarios and solutions to help you build professional grade mobile apps with Xamarin.Forms
  • Build an effective mobile app architecture with the Xamarin.Forms toolkit
  • Maximize the overall quality of your Xamarin.Forms apps

Discover how to extend and build upon the components of the Xamarin.Forms toolkit to develop 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 and geo-location, as well as how to loosely use these services in the app 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 logic through unit tests. Finally, we will setup Visual Studio App Center to automate building, testing, distributing and monitoring the app.
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 business logic 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 using Visual Studio App Center



- 充滿實際場景和解決方案,幫助您使用Xamarin.Forms建立專業級的移動應用程式
- 使用Xamarin.Forms工具包建立有效的移動應用程式架構
- 最大化Xamarin.Forms應用程式的整體品質


我們將首先通過應用MVVM模式和數據綁定,引入應用程式的用戶界面和業務邏輯之間的核心分離。然後,我們將專注於構建一層類似插件的服務,用於處理特定於平台的實用工具,例如導航和地理位置,以及如何鬆散地使用這些服務在應用程式中進行控制反轉和依賴注入。接下來,我們將將應用程式連接到基於Web的實時API並設置離線同步。然後,我們將通過單元測試來測試應用程式邏輯。最後,我們將設置Visual Studio App Center來自動構建、測試、分發和監控應用程式。


- 找出何時以及為什麼應該使用架構模式,並獲得Xamarin.Forms的最佳實踐
- 在Xamarin.Forms移動應用程式中實施模型-視圖-視圖模型(MVVM)模式和數據綁定
- 使用自定義的ViewModel-centric導航服務擴展Xamarin.Forms導航API
- 在Xamarin.Forms移動應用程式中利用控制反轉和依賴注入模式
- 在Xamarin.Forms移動應用程式中處理在線和離線數據
- 在Xamarin.Forms移動應用程式中測試業務邏輯
- 使用特定於平台的API在Xamarin.Forms移動應用程式中構建豐富的自定義用戶界面
- 探索如何使用Visual Studio App Center提高移動應用程式的品質