Hi,
I have the same problem. My main page has a drawer control and it's contentview is a grid with 2 rows. First row height is a star so that the second row is at the bottom of the screen. After a navigation occurs to another page and pop to the main page, the second row isn't on the visible area anymore. If I rotate the device to landscape, it appears again and after that rotating to portrait again and it displays the second row. What is the workaround for this? I only use code and not xaml. Here is my code part:
grid = new Grid
{
RowSpacing = 0,
ColumnSpacing = 1,
BackgroundColor = AppStyle.WhiteColor,
Padding = new Thickness(3, 0, 3, 0),
};
int satir = 0;
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star });
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star });
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star });
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star });
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star });
grid.ColumnDefinitions.Add(new ColumnDefinition { Width = GridLength.Star });
image = new Image
{
Aspect = Aspect.AspectFit,
};
grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Star });
grid.Children.Add(image, 0, satir++);
Grid.SetColumnSpan(image, 6);
var scanButton = new Button
{
Style = AppStyle.BasicButton,
Text = AppResources.ScanCard,
HorizontalOptions = LayoutOptions.FillAndExpand,
};
scanButton.Clicked += ScanButton_Clicked;
grid.RowDefinitions.Add(new RowDefinition { Height = GridLength.Auto });
grid.Children.Add(scanButton, 2, satir++);
Grid.SetColumnSpan(scanButton, 2);
drawer.ContentView = grid;
this.Content = drawer;