/// <summary> /// Handles the NavigationFailed event of the NavigationService. /// /// Developers you can use this event handler as a central place to /// display a navigation failed message. This handler can come in handy /// when initiating navigation from XAML where no call back is available. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="Microsoft.Practices.Prism.Regions.RegionNavigationFailedEventArgs"/> instance containing the event data.</param> private void NavigationService_NavigationFailed(object sender, RegionNavigationFailedEventArgs e) { //this.Logger.Log(String.Format(Constants.Global.NavigationFailedMessage_FormatString, e.Uri.ToString(), e.Error.Message)); //// demo only. In a real-world application, use a dialog service or interaction request to display messages. //MessageBox.Show(String.Format(Constants.Global.NavigationFailedMessage_FormatString, e.Uri.ToString(), e.Error.Message), // Constants.Global.NavigationFailed, MessageBoxButton.OK, MessageBoxImage.Error); throw e.Error; }
private static void RegionNavigationFailed(object sender, RegionNavigationFailedEventArgs e) { throw e.Error; }