Example 1 XAML - PeterBurke/MvvmCross-Forms GitHub Wiki

The same example but with pages written in XAML. Note that it was possible to write this page with a lot less effort, and to also provide more platform specific adjustments.

In order for the ToolBar to show at the base of the page, you need to provide 95 px padding at the bottom of the page. We used the OnPlatform function to describe the differences in padding per platform. This functional currently only provides for original three phone types. The Windows 8.1 Tablet is not catered for, but in this example we provide the 95 px padding at the base via a default setting in XAML.

Xamarin likely have a problem with OnPlatform because it is a function with three named parameters one for each phone type, they cannot provide additional parameters without breaking the code of existing Apps. Most likely they will issue a new function that will cover the widest range of known device types.