Working with Xamarin.Forms

PDF for offline use:
Related Articles:
Related Samples:
Related APIs:

Let us know how you feel about this.

Thanks for the feedback!

last updated: 2016-07

How to accomplish common tasks with Xamarin.Forms.

Application Class

The Application class is the starting point for Xamarin.Forms – every app needs to implement a subclass App to set the initial page. It also provides the Properties collection for simple data storage. It can be defined in either C# or XAML.

App Lifecycle

The Application class OnStart, OnSleep, and OnResume methods, as well as modal navigation events, let you handle application lifecycle events with custom code.


Update controls by responding to property changes and events in XAML.


Images can be shared across platforms with Xamarin.Forms, they can be loaded specifically for each platform, or they can be downloaded for display.


Defining and using colors across platforms can be tricky when each platform has its own standards and defaults.


File handling with Xamarin.Forms can be done using embedded resources or writing against the native filesystem APIs.

Local Databases

Xamarin.Forms supports database-driven applications using the SQLite database engine, which makes it possible to load and save objects in shared code.

Application Indexing and Deep Linking

Application indexing allows applications that would otherwise be forgotten after a few uses to stay relevant by appearing in search results. Deep linking allows applications to respond to a search result that contains application data, typically by navigating to a page referenced from a deep link.

Xamarin Workbook

If it's not already installed, install the Xamarin Workbooks app first. The workbook file should download automatically, but if it doesn't, just click to start the workbook download manually.