Exemple #1
0
        private async void DisplayPage(string htmlContent)
        {
            var dataFolder = await App.Current.Config.GetDataFolderAsync();

            var file = dataFolder.CreateFileAsync("index.html", CreationCollisionOption.ReplaceExisting);

            await FileIO.WriteTextAsync(await file, htmlContent);

            var uri = Webview.BuildLocalStreamUri("wikidata", "/data/index.html");

            _uri = uri;
            var uriResolver = new MyUriToStreamResolver();

            Webview.NavigateToLocalStreamUri(uri, uriResolver);
        }