在xamarin.forms中刷新webview的最佳方式是什么
我按以下方式处理webview成功加载:在xamarin.forms中刷新webview的最佳方式是什么,webview,xamarin.forms,Webview,Xamarin.forms,我按以下方式处理webview成功加载: void WebOnEndNavigating(object sender, WebNavigatedEventArgs e) { if (e.Result!=WebNavigationResult.Success) { //show message ... click on the button to retry } } 下面是事件刷新按钮: 当我连接到in
void WebOnEndNavigating(object sender, WebNavigatedEventArgs e)
{
if (e.Result!=WebNavigationResult.Success)
{
//show message ... click on the button to retry
}
}
下面是事件刷新按钮:
当我连接到internet时,单击刷新按钮,重新加载webview成功,但在WebOnEndNavigating eventHandler
WebNavigationResult失败
在Xamarin.Forms上重新加载webview的正确方法是什么
void Refresh_Click(object Sender,EventArgs e)
{
webview.Source = (webview.Source as UrlWebViewSource).Url;
}