当前位置: 首页>>代码示例>>C#>>正文


C# Navigation.NavigationFailedEventArgs类代码示例

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


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


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