Xamarin.Forms Control Templates

Control templates provide a clean separation between the appearance of a page and its content, enabling the creation of pages that can easily be themed.

Introduction

Xamarin.Forms control templates provide the ability to easily theme and re-theme application pages at runtime. This article provides an introduction to control templates.

Creating a ControlTemplate

Control templates can be defined at the application level or at the page level. This article demonstrates how to create and consume control templates.

Binding from a ControlTemplate

Template bindings allow controls in a control template to data bind to public properties, enabling property values on controls in the control template to be easily changed. This article demonstrates using template bindings to perform data binding from a control template.