I am trying to load an html file that is in the same way as the class I am working with. Through the web view in xamarin forms, when I launch the application, I get a white screen and my code is not loading here:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms;
namespace App.Plan
{
public partial class Tornado : ContentPage
{
public Tornado()
{
InitializeComponent();
var browser = new WebView
{
Source = "local.html"
};
}
}
}
source
share