This is a complete rework of the Xamarin.Forms FormsGallery sample, but this time using the XAML markup language instead of creating the UI elements directly in code as it is done in the original sample. The purpose of this sample is to showcase everything that’s available out of the box in Xamarin.Forms, or, in Xamarin’s own words:

This program displays all the views, cells, layouts, and pages available in Xamarin.Forms, one per page.

I did this as an exercise for becoming familiar with Xamarin.Forms and at the same time as a reference application to be able to quickly look up how Xamarin.Forms standard controls are used in XAML.

I also added my own, hand-rolled implementation of the MVVM pattern and ViewModel/Page navigation, using the Autofac IoC container. But for the presentation aspect of the Xamarin.Forms controls this is largely irrelevant as it acts completely behind the scenes and does not affect appearance at all – it just makes developer’s life so much easier. I will blog about this in a separate post soon.

The Sample Solution

The sample solution (VS 2013) is available here (GitHub).

Share on Pinterest
There are no images.
Share with your friends

Cross Platform Development