Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

WebView - refresh/reload

$
0
0

I am having the hardest time finding something out that should be so simple.

I have a Xamarin.Forms project where I am using a WebView and providing it a source:

   var wvSource = new HtmlWebViewSource();
        wvSource.BaseUrl = baseUrl;

        webView.Source = wvSource;

And in my WindowsRT project I am loading it in a customer renderer in the OnElementChanged method.

All works great.

But I can't for the life of me figure out how to assign a different source and reload the page.

I have a side menu on this Page and it has a bunch of different options. Selecting a different option needs to load a different page into the WebView.


Viewing all articles
Browse latest Browse all 91519

Trending Articles