KA
{
RowDefinitions =
{
new RowDefinition { Height = GridLength.Auto },
new RowDefinition { Height = new GridLength(100) },
new RowDefinition { Height = new GridLength(2, GridUnitType.Star) },
new RowDefinition { Height = new GridLength(1, GridUnitType.Star) }
}
};
// First Label (row 1 and column 1).
grid.Children.Add(new Label
{
Text = "Grid Demo",
FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label)),
HorizontalOptions = LayoutOptions.End
});
MainGrid.Children.Add(grid, 1,1);
Перед Add напиши
Grid.SetColumn(grid,1);
Grid.SetRow(grid,1);
и в Add передавай просто grid без дополнительных параметров.