Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Xamarin.Forms.WebView not showing

$
0
0

Right,

So declaring a web view like this -

WebView browser = new WebView
            {
                VerticalOptions = LayoutOptions.FillAndExpand,
                HorizontalOptions = LayoutOptions.FillAndExpand
            };

and then doing Content = browser; shows the web view just fine, But putting it in a StackLayout like this

StackLayout test = new StackLayout ();
            test.Children.Add (browser); 
            Content = browser;

and it won't show!! and I've tried putting fill and expand options on the StackLayout and it doesn't work either. I've tried with a Grid with no luck too. This is iOS and I have the NSTransportSecurity stuff in plist, The web view shows just doesn't show in a view for some reason....

Thanks


Viewing all articles
Browse latest Browse all 77050

Trending Articles