private void OnNaviationCompleted(object sender, NavigationCompletedEventArgs e)
 {
     if (e.IsSuccess)
     {
         this.Text = e.IsSuccess + "->" + this._Browser.DocumentTitle;
     }
     else
     {
         this.Text = "Navigation-Error=>" + e.GetErrorText();
     }
 }
예제 #2
0
        private void OnWebViewNavigationCompleted(object sender, NavigationCompletedEventArgs e)
        {
            Trace.TraceInformation("OnWebViewNavigationCompleted: " + e.GetErrorText());
            Trace.TraceInformation("Source: " + webView.Source);

            if (e.IsSuccess == true || e.WebErrorStatus == ErrorStatus.Unknown)
            {
                Trace.TraceInformation("Source: " + webView.BrowserVersion + " => " + webView.DocumentTitle);
            }
            else
            {
                Trace.TraceInformation("Source: " + webView.BrowserVersion + "=> Error=" + e.GetErrorText() + "->" + e.WebErrorStatus);

                if (e.WebErrorStatus == ErrorStatus.ConnectionAbborted)
                {
                    webView.Reload();
                }
            }
        }