Inheritance: INavigationFailedEventArgs
コード例 #1
0
		public void RaiseNavigationFailed(NavigationFailedEventArgs args)
		{
			if (NavigationFailed != null)
			{
				NavigationFailed(this, args);
			}
		}
コード例 #2
0
 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);
     }
 }
コード例 #3
0
ファイル: App.xaml.cs プロジェクト: hubaishan/quran-phone
 /// <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();
     }
 }
コード例 #4
0
ファイル: App.xaml.cs プロジェクト: Blackpaw/WhirlMon
 /// <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);
 }
コード例 #5
0
ファイル: App.xaml.cs プロジェクト: waynebaby/GreaterShareUWP
 /// <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));
 }
コード例 #6
0
ファイル: NavigationApp.cs プロジェクト: dhija/intense
 private void OnFrameNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     throw new Exception(ResourceHelper.GetString("LoadPageFailed", e.SourcePageType.FullName));
 }
コード例 #7
0
		/// <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 )
		{
		}
コード例 #8
0
 private async void OnNavigationFailed(object sender, NavigationFailedEventArgs args)
 {
     if (SDKManager.GlobalClientManager != null)
     {
         await SDKManager.GlobalClientManager.Logout();
     }
 }
コード例 #9
0
 private void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     throw new NotImplementedException();
 }
コード例 #10
0
 /// <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;
 }
コード例 #11
0
ファイル: App.xaml.cs プロジェクト: lorenzofar/Rewards-Wallet
 void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     Frame rootFrame = Window.Current.Content as Frame;
     rootFrame.BackStack.Clear();
     rootFrame.Navigate(typeof(MainPage));
 }
コード例 #12
0
 /// <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.");
 }
コード例 #13
0
ファイル: App.xaml.cs プロジェクト: Biocodr/HearthstoneCards
 private void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     // TODO change this code for your needs
     throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
 }
コード例 #14
0
 /// <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);
 }
コード例 #15
0
 void IFrameNavigationEventSink.OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
 }
コード例 #16
0
 public static NavigatorFailedEventArgs FromNavigationFailedEventArgs(NavigationFailedEventArgs args)
     => args != null ? new NavigatorFailedEventArgs(args.Exception) { Handled = args.Handled } : null;
コード例 #17
0
 /// <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>
 async void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     var ex = new Exception("Failed to load Page " + e.SourcePageType.FullName);
     await WriteException(ex);
     throw ex;
 }
コード例 #18
0
 private static void Ns_CleanNavigationStackAfter_OnNavigationFailed(object sender, NavigationFailedEventArgs navigationFailedEventArgs)
 {
     Unsubscribe_CleanNavigationStackAfter(sender);
 }
コード例 #19
0
ファイル: App.xaml.cs プロジェクト: AmadeusW/Mirror
 /// <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)
 {
     // TODO: Handle gracefully and log
     throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
 }
コード例 #20
0
 private void FrameNavigationFailed(object sender, NavigationFailedEventArgs e)
     => NavigationFailed?.Invoke(this, (NavigatorFailedEventArgs)e);
コード例 #21
0
 protected virtual void RootFrameNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
 }
コード例 #22
0
ファイル: App.xaml.cs プロジェクト: RafasTavares/UnitSocial
 /// <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("Erro ao careegar página " + e.SourcePageType.FullName);
 }
コード例 #23
0
 /// <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)
 {
     throw new InvalidOperationException("Failed to load Page " + arguments.SourcePageType.FullName);
 }
コード例 #24
0
 private void OnNavigationFailed(object sender, NavigationFailedEventArgs args)
 {
     if (_tcs != null)
     {
         args.Handled = true;
         _tcs.TrySetException(args.Exception);
     }
 }
コード例 #25
0
ファイル: App.xaml.cs プロジェクト: shahmalav/RSSFeedViewer
        /// <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)
        {
            //     MainPage1.DataContext = dataSource.info;

            throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
        }
コード例 #26
0
ファイル: App.xaml.cs プロジェクト: ivandrofly/DemoCode
 /// <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 void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
 {
     throw new Exception($"Failed to load page {e.SourcePageType.FullName}");
 }
コード例 #27
0
 /// <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);
 }
コード例 #28
0
	    void OnNavigationFailed( object sender, NavigationFailedEventArgs e )
		{
			HandleNavigationFailed( e );
		}