Can someone give me an example of webview? [closed]

-2

Can someone give me an example of a webview in xamarin or a tutorial ?? I can not find any example or tutorial on the web

    
asked by Alcides Salazar 03.12.2016 в 04:46
source

1 answer

0

In the documentation you can find an example:

link

For example:

Display a web page:

var browser = new WebView {
    Source = "http://xamarin.com"
};

Display a html String:

var browser = new WebView();
var htmlSource = new HtmlWebViewSource ();
htmlSource.Html = @"<html><body>
    <h1>Xamarin.Forms</h1>
    <p>Welcome to WebView.</p>
    </body></html>";
browser.Source = htmlSource;

Remember to enable the INTERNET permission inside the AndroidManifest.xml so that the WebView can access the internet.

    
answered by 03.12.2016 / 05:23
source