public void RaiseNavigationFailed(NavigationFailedEventArgs args) { if (NavigationFailed != null) { NavigationFailed(this, args); } }
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); } }
/// <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(); } }
/// <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); }
/// <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)); }
private void OnFrameNavigationFailed(object sender, NavigationFailedEventArgs e) { throw new Exception(ResourceHelper.GetString("LoadPageFailed", e.SourcePageType.FullName)); }
/// <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 ) { }
private async void OnNavigationFailed(object sender, NavigationFailedEventArgs args) { if (SDKManager.GlobalClientManager != null) { await SDKManager.GlobalClientManager.Logout(); } }
private void OnNavigationFailed(object sender, NavigationFailedEventArgs e) { throw new NotImplementedException(); }
/// <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; }
void OnNavigationFailed(object sender, NavigationFailedEventArgs e) { Frame rootFrame = Window.Current.Content as Frame; rootFrame.BackStack.Clear(); rootFrame.Navigate(typeof(MainPage)); }
/// <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."); }
private void OnNavigationFailed(object sender, NavigationFailedEventArgs e) { // TODO change this code for your needs throw new Exception("Failed to load Page " + e.SourcePageType.FullName); }
/// <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); }
void IFrameNavigationEventSink.OnNavigationFailed(object sender, NavigationFailedEventArgs e) { }
public static NavigatorFailedEventArgs FromNavigationFailedEventArgs(NavigationFailedEventArgs args) => args != null ? new NavigatorFailedEventArgs(args.Exception) { Handled = args.Handled } : null;
/// <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; }
private static void Ns_CleanNavigationStackAfter_OnNavigationFailed(object sender, NavigationFailedEventArgs navigationFailedEventArgs) { Unsubscribe_CleanNavigationStackAfter(sender); }
/// <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); }
private void FrameNavigationFailed(object sender, NavigationFailedEventArgs e) => NavigationFailed?.Invoke(this, (NavigatorFailedEventArgs)e);
protected virtual void RootFrameNavigationFailed(object sender, NavigationFailedEventArgs e) { }
/// <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); }
/// <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); }
private void OnNavigationFailed(object sender, NavigationFailedEventArgs args) { if (_tcs != null) { args.Handled = true; _tcs.TrySetException(args.Exception); } }
/// <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); }
/// <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}"); }
/// <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); }
void OnNavigationFailed( object sender, NavigationFailedEventArgs e ) { HandleNavigationFailed( e ); }