Mastering Xamarin UI Development

Steven F. Daniel

買這商品的人也買了...

商品描述

Build stunning, maintainable, cross-platform mobile application user interfaces with the power of Xamarin

About This Book

  • Create, configure, and customize stunning platform-specific features as well as cross-platform UIs with the power of Xamarin Forms.
  • Maximize the testability, flexibility, and overall quality of your Xamarin apps.
  • Get the most out of Xamarin.Forms and create your own reusable templates with C# scripting in Xamarin.

Who This Book Is For

If you are a mobile developer with basic knowledge of Xamarin and C# coding, then this book is for you.

What You Will Learn

  • Develop stunning native cross-platform apps using the Xamarin.Forms framework
  • Work with the different UI layouts to create customized layouts using the C# programming language and tweak it for a given platform
  • Customize the user interface using DataTemplates and CustomRenderers and the Platform Effects API to change the appearance of control elements
  • Build hybrid apps using the Razor Template Engine and create Razor Models that communicate with a SQLite database
  • Use location based features within your app to display the user’s current location
  • Work with the Xamarin.Forms Map control to display Pin placeholders based on the stored latitude and longitude coordinates
  • Understand and use the MVVM pattern architecture to navigate between each of your ViewModels and implement Data Binding to display and update information
  • Work with the Microsoft Azure Platform to incorporate API Data Access using Microsoft Azure App Services and the RESTful API
  • Incorporate third-party features within your app using the Facebook SDK and the Open Graph API
  • Perform unit testing and profile your Xamarin.Forms applications
  • Deploy your apps to the Google Play Store and Apple App Store

In Detail

Xamarin is the most powerful cross-platform mobile development framework. If you are interested in creating stunning user interfaces for the iOS and Android mobile platforms using the power of Xamarin and Xamarin.Forms, then this is your ticket.

This book will provide you the practical skills required to develop real-world Xamarin applications. You will learn how to implement UI structures and layouts, create customized elements, and write C# scripts to customize layouts. You will create UI layouts from scratch so that you can tweak and customize a given UI layout to suit your needs by using Data Templates.

Moving on, you will use third-party libraries – such as the Razor template engine that allows you to create your own HTML5 templates within the Xamarin environment – to build a book library Hybrid solution that uses the SQLite.Net library to store, update, retrieve, and delete information within a SQLite local database. You’ll also implement key data-binding techniques that will make your user interfaces dynamic, and create personalized animations and visual effects within your user interfaces using Custom Renderers and the PlatformEffects API to customize and change the appearance of control elements.

At the end of this book, you will test your application UI for robust and consistent behavior and then explore techniques to deploy to different platforms.

Style and approach

This easy to follow guide will walk you through building a real world Xamarin.Forms mobile app from start to finish. Each chapter builds upon the app using a step-by-step methodology that applies new advanced functionalities, design patterns, and best practices.

商品描述(中文翻譯)

使用 Xamarin 的強大功能,建立令人驚豔、易於維護且跨平台的行動應用程式使用者介面。

關於本書:
- 使用 Xamarin Forms 的能力,創建、配置和自定義令人驚豔的平台特定功能和跨平台的使用者介面。
- 最大化 Xamarin 應用程式的可測試性、靈活性和整體品質。
- 充分利用 Xamarin.Forms,使用 C# 腳本創建自己的可重複使用模板。

適合閱讀對象:
- 如果您是具備 Xamarin 和 C# 編碼基礎知識的行動開發人員,那麼本書適合您。

學到的內容:
- 使用 Xamarin.Forms 框架開發令人驚豔的本機跨平台應用程式。
- 使用不同的使用者介面佈局,使用 C# 程式語言創建自定義佈局,並針對特定平台進行微調。
- 使用 DataTemplates、CustomRenderers 和 Platform Effects API 自定義使用者介面,改變控制元素的外觀。
- 使用 Razor 模板引擎建立混合應用程式,並創建與 SQLite 資料庫通訊的 Razor 模型。
- 在應用程式中使用基於位置的功能,顯示使用者的當前位置。
- 使用 Xamarin.Forms 地圖控制項,根據存儲的緯度和經度坐標顯示 Pin 佔位符。
- 瞭解並使用 MVVM 模式架構,在各個 ViewModel 之間導航,並實現資料繫結以顯示和更新資訊。
- 使用 Microsoft Azure 平台,使用 Microsoft Azure App Services 和 RESTful API 進行 API 資料存取。
- 使用 Facebook SDK 和 Open Graph API 在應用程式中整合第三方功能。
- 執行單元測試並分析 Xamarin.Forms 應用程式。
- 將應用程式部署到 Google Play 商店和 Apple App Store。

詳細內容:
Xamarin 是最強大的跨平台行動開發框架。如果您有興趣使用 Xamarin 和 Xamarin.Forms 在 iOS 和 Android 行動平台上創建令人驚豔的使用者介面,那麼這本書就是您的入門指南。

本書將提供您開發實際 Xamarin 應用程式所需的實用技能。您將學習如何實現使用者介面結構和佈局,創建自定義元素,並編寫 C# 腳本來自定義佈局。您將從頭開始創建使用者介面佈局,以便使用 Data Templates 進行微調和自定義特定的使用者介面佈局。

接著,您將使用第三方庫,例如 Razor 模板引擎,該引擎允許您在 Xamarin 環境中創建自己的 HTML5 模板,以構建一個使用 SQLite.Net 库在 SQLite 本地資料庫中存儲、更新、檢索和刪除資訊的書庫混合解決方案。您還將實現關鍵的資料繫結技術,使您的使用者介面具有動態性,並使用 Custom Renderers 和 PlatformEffects API 在使用者介面中創建個性化動畫和視覺效果,以自定義和更改控制元素的外觀。

在本書結尾,您將測試應用程式使用者介面的強大和一致行為,並探索將應用程式部署到不同平台的技術。

風格和方法:
這本易於理解的指南將引導您從頭到尾建立一個真實的 Xamarin.Forms 行動應用程式。每一章都使用逐步方法來構建應用程式,應用新的高級功能、設計模式和最佳實踐。