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
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
In the documentation you can find an example:
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.