當前位置: 首頁>>代碼示例>>C#>>正文


C# Navigation.NavigationFailedEventArgs類代碼示例

本文整理匯總了C#中Windows.UI.Xaml.Navigation.NavigationFailedEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# NavigationFailedEventArgs類的具體用法?C# NavigationFailedEventArgs怎麽用?C# NavigationFailedEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


NavigationFailedEventArgs類屬於Windows.UI.Xaml.Navigation命名空間,在下文中一共展示了NavigationFailedEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: RaiseNavigationFailed

		public void RaiseNavigationFailed(NavigationFailedEventArgs args)
		{
			if (NavigationFailed != null)
			{
				NavigationFailed(this, args);
			}
		}
開發者ID:kamilkk,項目名稱:MyVote,代碼行數:7,代碼來源:NavigationServiceMock.cs

示例2: OnNavigationFailed

 private async void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     await QmunicateLoggerHolder.Log(QmunicateLogLevel.Debug, "OnNavigationFailed. SourcePageType=" + e.SourcePageType + "\n Exception=" + e.Exception);
     var handler = NavigationFailed;
     if (handler != null)
     {
         handler.Invoke(sender, e);
     }
 }
開發者ID:QuickBlox,項目名稱:q-municate-dotnet,代碼行數:9,代碼來源:NavigationService.cs

示例3: OnNavigationFailed

 /// <summary>
 /// Invoked when Navigation to a certain page fails
 /// </summary>
 /// <param name="sender">The Frame which failed navigation</param>
 /// <param name="e">Details about the navigation failure</param>
 void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     QuranApp.NativeProvider.ShowErrorMessageBox("Failed to load Page " + e.SourcePageType.FullName);
     telemetry.TrackException(e.Exception, new Dictionary<string, string> { { "Scenario", "AppNavigationFailed" } });
     if (System.Diagnostics.Debugger.IsAttached)
     {
         // A navigation has failed; break into the debugger
         System.Diagnostics.Debugger.Break();
     }
 }
開發者ID:hubaishan,項目名稱:quran-phone,代碼行數:15,代碼來源:App.xaml.cs

示例4: OnNavigationFailed

 /// <summary>
 /// Invoked when Navigation to a certain page fails
 /// </summary>
 /// <param name="sender">The Frame which failed navigation</param>
 /// <param name="e">Details about the navigation failure</param>
 void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     WhirlPoolAPIClient.ShowToast("App.OnNavigationFailed: Failed to load Page " + e.SourcePageType.FullName);
 }
開發者ID:Blackpaw,項目名稱:WhirlMon,代碼行數:9,代碼來源:App.xaml.cs

示例5: OnNavigationFailed

 /// <summary>
 /// Invoked when Navigation to a certain page fails
 /// </summary>
 /// <param name="sender">The Frame which failed navigation</param>
 /// <param name="e">Details about the navigation failure</param>
 void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     var template = ResourceLoader.GetForViewIndependentUse().GetString(nameof(OnNavigationFailed) + nameof(Exception));
     throw new Exception(string.Format(template, e.SourcePageType.FullName));
 }
開發者ID:waynebaby,項目名稱:GreaterShareUWP,代碼行數:10,代碼來源:App.xaml.cs

示例6: OnFrameNavigationFailed

 private void OnFrameNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     throw new Exception(ResourceHelper.GetString("LoadPageFailed", e.SourcePageType.FullName));
 }
開發者ID:dhija,項目名稱:intense,代碼行數:4,代碼來源:NavigationApp.cs

示例7: HandleNavigationFailed

		/// <summary>
		///     Executes when navigation has been failed. Override to provide your own handling.
		/// </summary>
		/// <param name="eventArgs">
		///     The <see cref="Windows.UI.Xaml.Navigation.NavigationFailedEventArgs" /> instance containing the event data.
		/// </param>
		protected virtual void HandleNavigationFailed( NavigationFailedEventArgs eventArgs )
		{
		}
開發者ID:Korshunoved,項目名稱:Win10reader,代碼行數:9,代碼來源:WindowsRTApplication.cs

示例8: OnNavigationFailed

 private async void OnNavigationFailed(object sender, NavigationFailedEventArgs args)
 {
     if (SDKManager.GlobalClientManager != null)
     {
         await SDKManager.GlobalClientManager.Logout();
     }
 }
開發者ID:maliroteh,項目名稱:SalesforceMobileSDK-Windows,代碼行數:7,代碼來源:SalesforceApplication.cs

示例9: OnNavigationFailed

 private void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     throw new NotImplementedException();
 }
開發者ID:nodekit-io,項目名稱:nodekit-windows,代碼行數:4,代碼來源:NKE_BrowserWindow_uwp.cs

示例10: OnNavigationFailed

 /// <summary>
 /// Invoked when Navigation to a certain page fails
 /// </summary>
 /// <param name="sender">The Frame which failed navigation</param>
 /// <param name="e">Details about the navigation failure</param>
 private async void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     await Utils.MessageBox("Failed to load Page " + e.SourcePageType.FullName);
     e.Handled = true;
 }
開發者ID:KonstantinKolesnik,項目名稱:SmartHub,代碼行數:10,代碼來源:App.xaml.cs

示例11: OnNavigationFailed

 void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     Frame rootFrame = Window.Current.Content as Frame;
     rootFrame.BackStack.Clear();
     rootFrame.Navigate(typeof(MainPage));
 }
開發者ID:lorenzofar,項目名稱:Rewards-Wallet,代碼行數:6,代碼來源:App.xaml.cs

示例12: OnNavigationFailed

 /// <summary>
 /// Invoked when Navigation to a certain page fails
 /// </summary>
 /// <param name="sender">The Frame which failed navigation</param>
 /// <param name="e">Details about the navigation failure</param>
 void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     //throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
     Debug.WriteLine("### Navigation failed.");
 }
開發者ID:mdavidov,項目名稱:searchfiles-winstore,代碼行數:10,代碼來源:App.xaml.cs

示例13: OnNavigationFailed

 private void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     // TODO change this code for your needs
     throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
 }
開發者ID:Biocodr,項目名稱:HearthstoneCards,代碼行數:5,代碼來源:App.xaml.cs

示例14: OnNavigationFailed

 /// <summary>
 /// Invoked when Navigation to a certain page fails
 /// </summary>
 /// <param name="sender">The Frame which failed navigation</param>
 /// <param name="arguments">Details about the navigation failure</param>
 void OnNavigationFailed(object sender, NavigationFailedEventArgs arguments)
 {
     arguments.Handled = true;
     throw new InvalidOperationException("Failed to load Page " + arguments.SourcePageType.FullName +
         "\n" + arguments.Exception.Message);
 }
開發者ID:dpal887,項目名稱:Navio-SDK-Windows-IoT,代碼行數:11,代碼來源:App.xaml.cs

示例15:

 void IFrameNavigationEventSink.OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
 }
開發者ID:firstfloorsoftware,項目名稱:intense,代碼行數:3,代碼來源:FrameCommands.cs


注:本文中的Windows.UI.Xaml.Navigation.NavigationFailedEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。