I'm trying to set WebView in auto size inside grid. But WebView content is not coming when I set <RowDefinition Height="Auto" />
// Written in Code Behind.
url = details.Url;
var browser = new WebView
{
Source = url,
};
grid.Children.Add(browser);
// Written in XAML Page.
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid x:Name="grid" BackgroundColor="Red" />
</Grid>
Any help is appreciated. Thanks!