Book Image

Mastering Xamarin UI Development

By : Steven F. Daniel
Book Image

Mastering Xamarin UI Development

By: Steven F. Daniel

Overview of this book

<p>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.</p> <p>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.</p> <p>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.</p> <p>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.</p>
Table of Contents (19 chapters)
Mastering Xamarin UI Development
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface

Understanding the Razor template engine


The Razor templating engine was first introduced as part of the ASP.Net MVC architecture, and was originally designed to run on a web server to generate HTML files to be served to web browsers.

Since Razor made its first appearance on the development scene, the Razor templating engine has come a long way and now extends the standard HTML syntax, so that you can use C# to express the layout of your HTML files, and incorporate CSS style sheets and JavaScript easily.

Each Razor template has the ability to reference a Model class which can be of any custom type, and properties can be accessed directly from the template, by having the ability to mix HTML and C# syntax easily.

As you work through this chapter, you will see how, by working with Xamarin Studio, you can utilize the Razor HTML templating engine and be equipped with the flexibility of building cross-platform templated HTML views that use both JavaScript and CSS, as well as having access to the underlying...