uwp WebView navigation Open HTML file from app package


Example

You can easily open a file from your app package, but Uri scheme must be "ms-appx-web" instead of "ms-appx":

var uri = new Uri("ms-appx-web:///Assets/Html/html-sample.html");
this.webView.Navigate(uri);