Skip to content

Instantly share code, notes, and snippets.

@ytabuchi
Created December 31, 2016 05:21
Show Gist options
  • Save ytabuchi/54f0b860d1615c3cd76b45dbfa4f5c4b to your computer and use it in GitHub Desktop.
Save ytabuchi/54f0b860d1615c3cd76b45dbfa4f5c4b to your computer and use it in GitHub Desktop.
Grid Layout of Xamarin.Forms sample
var grid = new Grid();
grid.RowDefinitions.Add(new RowDefinition
{
Height = new GridLength(2, GridUnitType.Star)
});
grid.RowDefinitions.Add(new RowDefinition
{
Height = new GridLength (1, GridUnitType.Star)
});
grid.RowDefinitions.Add (new RowDefinition
{
Height = new GridLength(200)
});
grid.ColumnDefinitions.Add (new ColumnDefinition
{
Width = new GridLength (200)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment