Код: Выделить всё
public partial class App : Application
{
public App ( )
{
InitializeComponent ( );
BoxView box = new BoxView { Color = Colors.LightBlue } ;
ContentView view = new ContentView { BackgroundColor = Colors.Yellow } ;
Editor editor = new Editor { BackgroundColor = Colors.Green } ;
Grid grid = new Grid ( ) ;
grid.AddColumnDefinition ( new ColumnDefinition ( ) );
grid.AddRowDefinition ( new RowDefinition { Height = 100 } );
grid.AddRowDefinition ( new RowDefinition { Height = new GridLength ( 1 , GridUnitType.Star ) } );
grid.AddRowDefinition ( new RowDefinition { Height = 100 } );
grid.Add ( box , 0 , 0 );
grid.Add ( view , 0 , 1 );
grid.Add ( editor , 0 , 2 );
MainPage = new ContentPage { Content = grid };
}
}

Подробнее здесь: https://stackoverflow.com/questions/775 ... ts-properl