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

I cannot use HybridWebView in Xamarin.Forms

$
0
0

Hello,
I am trying to use the HybridWebView control inside a Xamarin.Forms page but I get the following exception when the related page is called:
System.TypeInitializationException: An exception was thrown by the type initializer for Xamarin.Forms.Labs.Controls.HybridWebView

I have created the following page in the PCL project:

public class WebsiteView : ContentPage
{
public WebsiteView()
{

        var webView = new HybridWebView();

        //Some other functionality....

       Content = webView;

    }

}

Am I missing something regarding the usage of this control?

Thanks


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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