• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Navigation.NavigationFailedEventArgs类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Navigation.NavigationFailedEventArgs的典型用法代码示例。如果您正苦于以下问题:C# NavigationFailedEventArgs类的具体用法?C# NavigationFailedEventArgs怎么用?C# NavigationFailedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



NavigationFailedEventArgs类属于System.Windows.Navigation命名空间,在下文中一共展示了NavigationFailedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ContentFrame_NavigationFailed

 // If an error occurs during navigation, show an error window
 private void ContentFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     e.Handled = true;
     ChildWindow errorWin = new ErrorWindow(e.Uri);
     errorWin.Show();
     
 }
开发者ID:BenBarahona,项目名称:Sistema-Clinica-Mama,代码行数:8,代码来源:MainPage.xaml.cs


示例2: RootFrame_NavigationFailed

 // Code to execute if a navigation fails
 private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     if (System.Diagnostics.Debugger.IsAttached) {
         // A navigation has failed; break into the debugger
         System.Diagnostics.Debugger.Break();
     }
 }
开发者ID:stejin,项目名称:Kanji-Flashcards-for-Windows-Phone,代码行数:8,代码来源:App.xaml.cs


示例3: Application_NavigationFailed

 private void Application_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     if (e.Exception is System.Net.WebException) {
         MessageBox.Show("Site " + e.Uri + " not available :(");
         e.Handled = true;
     }
 }
开发者ID:perfectdev,项目名称:ProtoBuilder,代码行数:7,代码来源:AboutUsWindow.xaml.cs


示例4: OnBrowserNavigationFailed

 /// <summary>Callback of browser navigation failed.</summary>
 private void OnBrowserNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     if (!tcsAuthorizationCodeResponse.Task.IsCompleted)
     {
         tcsAuthorizationCodeResponse.SetException(e.Exception);
     }
 }
开发者ID:jonatasschagas,项目名称:MyCities,代码行数:8,代码来源:WebAuthenticationBrokerUserControl.xaml.cs


示例5: RootFrame_NavigationFailed

		private void RootFrame_NavigationFailed( object sender, NavigationFailedEventArgs e )
		{
			if ( Debugger.IsAttached )
			{
				Debugger.Break();
			}
		}
开发者ID:gezidan,项目名称:ZYSOCKET,代码行数:7,代码来源:App.xaml.cs


示例6: NavigationFailed

 // Code to execute if a navigation fails
 protected virtual void NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     //if (System.Diagnostics.Debugger.IsAttached)
     //{
     //    // A navigation has failed; break into the debugger
     //    System.Diagnostics.Debugger.Break();
     //}
 }
开发者ID:SimonSimCity,项目名称:MvvmCross,代码行数:9,代码来源:PhoneBootstrapper.cs


示例7: RootFrame_NavigationFailed

		// Код для выполнения в случае ошибки навигации
		private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
		{
			if (Debugger.IsAttached)
			{
				// Ошибка навигации; перейти в отладчик
				Debugger.Break();
			}
		}
开发者ID:8Observer8,项目名称:MyProjects,代码行数:9,代码来源:App.xaml.cs


示例8: browserControl_NavigationFailed

 void browserControl_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     WebBrowserNavigationException ex = e.Exception as WebBrowserNavigationException;
     uint error = ex != null ? (uint)ex.StatusCode : 0u;
     WebAuthenticationResult result = new WebAuthenticationResult("", WebAuthenticationStatus.ErrorHttp, error);
     WebAuthenticationResultSource.TrySetResult(result);
     e.Handled = true;
 }
开发者ID:andreychizhov,项目名称:microsoft-aspnet-samples,代码行数:8,代码来源:LoginPage.xaml.cs


示例9: RootFrame_NavigationFailed

 // Code à exécuter en cas d'échec d'une navigation
 private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     if (Debugger.IsAttached)
     {
         // Échec d'une navigation ; arrêt dans le débogueur
         Debugger.Break();
     }
 }
开发者ID:Ratel13,项目名称:wp-store,代码行数:9,代码来源:App.xaml.cs


示例10: webBrowser_NavigationFailed

 private void webBrowser_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     e.Handled = true;
     webBrowser.NavigateToString("<html><body>I'm having trouble loading " +
         "the web applicaiton right now. Are you in airplane mode?<br/>" +
         "<a href='" + e.Uri.ToString() + "'>Try again.</a>" +
         "</body></html>");
 }
开发者ID:shreedharcva,项目名称:Windows-Phone-7-In-Action,代码行数:8,代码来源:MainPage.xaml.cs


示例11: RootFrame_NavigationFailed

 // Code to execute if a navigation fails
 void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     if (Debugger.IsAttached)
     {
         // A navigation has failed; break into the debugger
         Debugger.Break();
     }
 }
开发者ID:Lakritzator,项目名称:Zeroconf,代码行数:9,代码来源:App.xaml.cs


示例12: RootFrame_NavigationFailed

 // 导航失败时执行的代码
 private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     if (System.Diagnostics.Debugger.IsAttached)
     {
         // 导航已失败;强行进入调试器
         System.Diagnostics.Debugger.Break();
     }
 }
开发者ID:sleepandeat,项目名称:Program,代码行数:9,代码来源:App.xaml.cs


示例13: Frame_NavigationFailed

 private void Frame_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     //if (e.Exception is WebException)
     {
         string s = LanguageDictionary.Current.Translate<string>("NavigationError", "Text", "Error opening ") + e.Uri.ToString();
         MessageBox.Show(s, App.Name, MessageBoxButton.OK, MessageBoxImage.Error);
         e.Handled = true;
     }
 }
开发者ID:KonstantinKolesnik,项目名称:Typhoon,代码行数:9,代码来源:MainWindow.xaml.cs


示例14: BrowserNavigationFailed

 void BrowserNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     if (completed || e.Exception == null)
         return;
     string statusCode = "no status code given";
     if (e.Exception is WebBrowserNavigationException)
         statusCode = ((WebBrowserNavigationException)e.Exception).StatusCode.ToString();
     MessageBox.Show(string.Format("{0} ({1})", e.Exception.Message, statusCode), "Error logging in", MessageBoxButton.OK);
 }
开发者ID:aata,项目名称:flashcards-wp7,代码行数:9,代码来源:Login.xaml.cs


示例15: App_NavigationFailed

        private void App_NavigationFailed(object sender, NavigationFailedEventArgs e)
        {
            if (e.Exception is System.Net.WebException)
            {                
                MessageBox.Show("Website " + e.Uri.ToString() + " cannot be reached.");

                // Neutralize the erorr so the application continues running.
                e.Handled = true;                
            }
        }
开发者ID:ssickles,项目名称:archive,代码行数:10,代码来源:App.xaml.cs


示例16: Browser_NavigationFailed

        void Browser_NavigationFailed(object sender, NavigationFailedEventArgs e)
        {
            Progress.IsIndeterminate = false;
            Progress.Visibility = Visibility.Collapsed;

            WebAuthenticationBroker.Result = new WebAuthenticationResult(e.Exception == null ? "" : e.Exception.Message, e.Exception == null ? 0 : (uint)e.Exception.HResult, WebAuthenticationStatus.ErrorHttp);

            NavigationService.GoBack();
            WebAuthenticationBroker.Handle.Set(); 
        }
开发者ID:inthehand,项目名称:Charming,代码行数:10,代码来源:WebAuthenticationPage.xaml.cs


示例17: RootFrame_NavigationFailed

        // Code to execute if a navigation fails
        private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) {
#if DEBUG
            if (!System.Diagnostics.Debugger.IsAttached) {
                // A navigation has failed; break into the debugger
                System.Diagnostics.Debugger.Break();
            }
#else
            MessageBox.Show("A unknown navigation error occurred. Please report this error. The application will shutdown.",
                                "Navigation Error",
                                MessageBoxButton.OK);
#endif
        }
开发者ID:Sebazzz,项目名称:SDammann.WindowsPhone.Utils,代码行数:13,代码来源:GeneralApplication.cs


示例18: frame_NavigationFailed

 private void frame_NavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     e.Handled = true;
     if (e.Exception is WebException) {
         WebException ex = e.Exception as WebException;
         var ru = ex.Response.ResponseUri;
         string s = ((int)((HttpWebResponse)ex.Response).StatusCode) + " " + ((HttpWebResponse)ex.Response).StatusCode.ToString();
         var a = new PageHttpError();
         a.OnRetry += delegate {
             frame.Source = ru;
         };
         frame.Navigate(a.SetStatus(s));
     }
 }
开发者ID:cvronmin,项目名称:metocraft,代码行数:14,代码来源:GridHelp.xaml.cs


示例19: OnBrowserNavigationFailed

 /// <summary>Callback of browser navigation failed.</summary>
 private void OnBrowserNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     if (!tcsAuthorizationCodeResponse.Task.IsCompleted)
     {
         // See https://code.google.com/p/google-api-dotnet-client/issues/detail?id=431.
         // If we encounter a null exception, cancel the task because the Windows Phone app crashed.
         if (e.Exception != null)
         {
             tcsAuthorizationCodeResponse.SetException(e.Exception);
         }
         else
         {
             tcsAuthorizationCodeResponse.SetCanceled();
         }
     }
 }
开发者ID:jtattermusch,项目名称:google-api-dotnet-client,代码行数:17,代码来源:WebAuthenticationBrokerUserControl.xaml.cs


示例20: RootFrame_NavigationFailed

        // Code to execute if a navigation fails
        private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e)
        {
            if (System.Diagnostics.Debugger.IsAttached)
            {
                // A navigation has failed; break into the debugger
                System.Diagnostics.Debugger.Break();

            }

            //            MessageBox.Show(string.Format("Page {0} failed to load because of with error: {1}", e.Uri.ToString(), e.Exception.StackTrace)); e.Handled = true;
        }
开发者ID:amitf,项目名称:WazeWP7,代码行数:12,代码来源:App.xaml.cs



注:本文中的System.Windows.Navigation.NavigationFailedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Navigation.NavigationService类代码示例发布时间:2022-05-26
下一篇:
C# Navigation.NavigationEventArgs类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap