Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Setting BaseUrl on files loaded from Environment.SpecialFolder.LocalApplicationData

$
0
0

This should probably be straightforward but it's been giving me a headache.
Basically I'm creating an app that downloads a zip file containing html, css, javascript etc.
It unzips the contents and stores them in LocalApplicationData, loades the index.html into a webview likes so:

HtmlWebViewSource html = new HtmlWebViewSource();

html.Html = htmlString;
html.BaseUrl = DependencyService.Get().Get();
courseWindow.Source = html;

All of this works just fine, except I end with unformatted html, no scripts running etc..
I'm assuming this has to do with the baseURL but could it be something else like resources being blocked from loading?

If anybody has come upon the same issue or could point me in the right direction that would be great.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>