Home

Awesome

ResponsiveLayout

A responsive LayoutView for Xamarin.Forms where you can define multiple layout templates for different widths, platforms or device types (Idioms).

Tested on Android and UWP. iOS might also work.

NuGet Installation

https://www.nuget.org/packages/ResponsiveLayout.Xamarin.Forms

Install-Package ResponsiveLayout.Xamarin.Forms

Properties

EnableContentCaching: bool

If this option is enabled, the ResponsiveLayout will cache the created contents for each requested template. This is especially useful if you use the LayoutMode "Width" on a desktop application.

LayoutMode: ResponsiveLayoutMode

Determines which DataTemplates will be used.

Available values are: Width, Idiom, Platform and Orientation.


Here are some examples:

LayoutMode: Width

The ResponsiveLayout will choose one of the given templates depending on the width of the main page. You don't have to sepcify a template for every size (XS - XL), the ResponsiveLayout takes the next appropriate template.

Templates

Demo of Layout Mode "Width" on Android Demo of Layout Mode "Width" on UWP

LayoutMode: Idiom

The ResponsiveLayout takes the template for the current Device Idiom. If you don't have a specific template for an Idiom, the ResponsiveLayout uses the default template.

Templates

Demo of Layout Mode "Idiom" on Android Demo of Layout Mode "Idiom" on UWP

LayoutMode: Platform

The ResponsiveLayout uses the appropriate template for the current RuntimePlatform. If you don't have a specific template for a Platform, the ResponsiveLayout uses the default template.

Templates

LayoutMode: Orientation

The ResponsiveLayout uses the appropriate template for the current device orientation.

Templates

Demo of Layout Mode "Orientation" on Android