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

Anyone have success with Xamarin.Forms.Labs.HybridWebView?

$
0
0

Has anyone actually had success using the HybridWebView control from Xamarin Forms Labs? I've burned a day trying to get it to render in a sample hello world app with no success.

Here's what I have so far:

MyPage.xaml

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="TestHybridWebView.MyPage"
xmlns:controls="clr-namespace:Xamarin.Forms.Labs.Controls;assembly=Xamarin.Forms.Labs"
>
    <ContentPage.Content>
        <controls:HybridWebView x:Name="webView" ></controls:HybridWebView>
    </ContentPage.Content>
</ContentPage>

And the codebehind:
    namespace TestHybridWebView
        {   
        public partial class MyPage : ContentPage
        {   
            public MyPage ()
            {
                InitializeComponent ();
            }

            protected override void OnAppearing ()
            {
                base.OnAppearing ();
                this.webView.Uri = new Uri ("http://www.google.com");
            }
        }
    }

I'm using AutoFac to set up the JsonSerializer dependency, with no issues there.

I don't receive any errors, but nothing renders in my view. I've also tried setting the content of the control to a simple html page added as content to my IOS project, but it also does not produce anything in the view.


Viewing all articles
Browse latest Browse all 75885

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>