Inheritance: IWebViewNavigationFailedEventArgs
		void wbMain_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
		{
			bLoading = false;
		}
 private void MenuWebView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
         Debug.WriteLine("Web View Navigation Error... Result: " + e.WebErrorStatus.ToString());
         networkStatus.Text = "W.V. Error 101";
         streamStatus.Text = "Restart the App and notify the Developer";
         networkStatus.Foreground = new SolidColorBrush(Colors.Red);
         streamStatus.Foreground = new SolidColorBrush(Colors.Red);
 }
 private void NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     m_host.ShowError();
 }
Exemplo n.º 4
0
 private void webView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     ViewModel.IsBusy = false;
 }
Exemplo n.º 5
0
 private void browserweb_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     nointernet.Visibility = Visibility.Visible;
     browserweb.Visibility = Visibility.Collapsed;
 }
 private void myWebView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     SuccespopUp.Visibility = Visibility.Visible;
 }
        void WebView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
#endif
        {
#if WINDOWS_PHONE
            var error = e.Exception.ToString();
#elif SILVERLIGHT
            var error = "Unknown error";
#else
            var error = e.WebErrorStatus.ToString();
#endif
            OnNavigationFailed(error);
        }
Exemplo n.º 8
0
        private void NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
        {
            ShowDialog(resources.GetString("ErrorNavigating"));

            webViewProgressRing.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
        }
        void WebView1_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
        {
            Loading.IsIndeterminate = false;

            var fontfamily = (this.Resources["ContentControlThemeFontFamily"] as FontFamily).Source;
            var fontcolor = "Black";

            var html = "<body style=\"font-family:" + fontfamily + ";color:" + fontcolor + ";font-size='20pt'\">" + string.Format("Error: {0} {1}", e.WebErrorStatus, e.Uri) + "</body>";
            WebView1.NavigateToString(html);            
        }
Exemplo n.º 10
0
        void wb_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
        {
            string s = e.ToString();
            System.Diagnostics.Debug.WriteLine(s);

            OauthService.Instance.NotifyOauthLoginResult(false);
        }
Exemplo n.º 11
0
 void wb_NavigationFailed(object sender,  WebViewNavigationFailedEventArgs e){
     bool isDark = (Application.Current.RequestedTheme == ApplicationTheme.Dark);
     string bgColor = isDark ? "black" : "white";
     string fontColor = isDark ? "gray" : "black";
     string html = strNavFailed.Replace("XXXXX", bgColor).Replace("ZZZZZ", fontColor);
     html = html.Replace("YYYYY", getUrl(urls.uStats));
     wb.NavigateToString(html);
 }
Exemplo n.º 12
0
 private void wvMain_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     dtMaxLoadTime.Stop();
     SendMessage?.Invoke(null, new ContentViewEventArgs() { Type = "NavigationFailed", Uri = e.Uri, ExtraDetails1 = e.WebErrorStatus.ToString() });
 }
Exemplo n.º 13
0
 private void WebViewControl_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     var msg = resourceLoader.GetString("connection_lost");
     NotifyUser(msg, NotifyType.ErrorMessage);
     UpdateGUIWhenStopProgressImportContact();
 }
Exemplo n.º 14
0
 private void OnNavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     OnNavigationFailed(e.WebErrorStatus);
 }
Exemplo n.º 15
0
 internal void OnNavigationFailed(WebViewNavigationFailedEventArgs args)
 {
     NavigationFailed?.Invoke(this, args);
 }
Exemplo n.º 16
0
        /// <summary>
        /// Handler for the browser control's navigation failed event.  We use this to detect errors
        /// </summary>
        private void BrowserControl_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
        {
            UnhookEvents();

            // Pass along the provided error information.
            responseErrorDetail = string.Format("Error: {0}", e.WebErrorStatus);
            responseStatus = PhoneAuthenticationStatus.ErrorHttp;

            authenticationFinished = true;

            // Navigate back now.
            this.NavigateBackWithProgress();
        }
Exemplo n.º 17
0
 private async void NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     var dlg = new MessageDialog("ページの読み込みに失敗しました");
     await dlg.ShowAsync();
 }
 void _interstitialAdView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     Debug.WriteLine(" _interstitialAdView_NavigationFailed");
     MessagePrompt("_interstitialAdView_NavigationFailed");
 }
Exemplo n.º 19
0
 private void WebView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     ProgressRing.IsActive = false;
     ProgressRing.Visibility = Visibility.Collapsed;
     WatermarkTextBlock.Visibility = Visibility.Visible;
 }
Exemplo n.º 20
0
 private void TaobaoLogin_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     System.Diagnostics.Debugger.Break();
 }
Exemplo n.º 21
0
 private void WebView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     App.Current.InvokeToast("Lỗi khi tải trang, hãy thử refresh lại trang web bằng nút F5", 4000);
 }
Exemplo n.º 22
0
        async void Browser_NavigationFailed(object sender, controls.WebViewNavigationFailedEventArgs args)
        {
            var error = args.WebErrorStatus.ToString();

            await View.LoadingError.RaiseOn(Thread.Pool, error);
        }
 void wv_NavigationFailed(
     object sender,
     WebViewNavigationFailedEventArgs e)
 {
     if (NavFailedEvent != null)
     {
         NavFailedEvent.Invoke(
             this, new AdnWebAuthViewEventArgs()
             {
                 Uri = e.Uri
             });
     }
 }
Exemplo n.º 24
0
 void _bannerAdView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     Debug.WriteLine("_bannerAdView_navigationFailed");
     MessagePrompt("_bannerAdView_navigationFailed");
 }
        private void OnNavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
        {
            VisualStateManager.GoToState(this, LoadedStateName, true);

            if (_titleBar != null)
            {
                _titleBar.Text = e.WebErrorStatus.ToString();
            }
        }
Exemplo n.º 26
0
 private void NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     ChangeNavigationState(NavigationState.Error);
 }
Exemplo n.º 27
0
 async void webView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     await new MessageDialog(e.WebErrorStatus.ToString()).ShowAsync();
 }
Exemplo n.º 28
0
 private void PaginaFalhou(object sender, WebViewNavigationFailedEventArgs e)
 {
     Debug.WriteLine("[WebView-03] Falha no Carregamento da Página");
 }
 private void webView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
 }
Exemplo n.º 30
0
 private void NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     m_base.FireOnError(true, "This web page is broken");
 }
 private void ContentView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
 {
     string errorString = "<p>Page could not be loaded.</p><p>Error is: " + e.WebErrorStatus.ToString() + "</p>";
     this.contentView.NavigateToString(errorString);
 }
        private void webView_NavigationFailed(object sender, WebViewNavigationFailedEventArgs e)
        {
            busy = false;
            dialogLoadComplete = false;
            lastUri = null;
            webViewFB.Visibility = Windows.UI.Xaml.Visibility.Collapsed;

            ScriptResponse sr = ErrorHandler.setupErrorResponse(ErrorsEnum.E000204);
            string js = string.Format("javascript: var e = document.createEvent('Events');e.initEvent('appMobi.facebook.request.response',true,true);e.success=false;e.error='{0}';e.raw='';e.data={{}};document.dispatchEvent(e);", sr.Message);
            InjectJS(js);
        }