Xamarin.Forms Samples

Calling Factory Methods

This sample demonstrates using XAML to call a factory method that can be used to initialize an object.

Coerce Value Callback

A bindable property is a special type of property, where the property's value is tracked by the Xamarin.Forms property system. This sample demonstrates using a coerce value callback to force a re-evaluation of a bindable property when the value of the property changes.

Custom Namespace Schemas

This sample demonstrates defining and consuming a custom namespace schema, which specifies a mapping between a custom URL and one or more CLR namespaces.

Data Binding Demos

This sample demonstrates data binding in both code and XAML.

Load XAML at Runtime

This sample demonstrates using the LoadFromXaml extension method to load, parse, and display XAML at runtime.

Markup Extensions

This sample demonstrates how to use the various XAML markup extensions and how to create your own.

Passing Constructor Arguments

This sample demonstrates specifying constructor arguments for a non-default constructor in XAML.

Resource Dictionaries

This sample demonstrates creating and consuming a ResourceDictionary at the application, page, and control level.

RPN Calculator

An RPN Calculator built with data binding and commands

Validation Callback

A bindable property is a special type of property, where the property's value is tracked by the Xamarin.Forms property system. This sample demonstrates using a validation callback to validate the value of a bindable property.