本文整理汇总了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);
}
}
示例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);
}
}
示例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();
}
}
示例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);
}
示例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));
}
示例6: OnFrameNavigationFailed
private void OnFrameNavigationFailed(object sender, NavigationFailedEventArgs e)
{
throw new Exception(ResourceHelper.GetString("LoadPageFailed", e.SourcePageType.FullName));
}
示例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 )
{
}
示例8: OnNavigationFailed
private async void OnNavigationFailed(object sender, NavigationFailedEventArgs args)
{
if (SDKManager.GlobalClientManager != null)
{
await SDKManager.GlobalClientManager.Logout();
}
}
示例9: OnNavigationFailed
private void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
throw new NotImplementedException();
}
示例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;
}
示例11: OnNavigationFailed
void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
Frame rootFrame = Window.Current.Content as Frame;
rootFrame.BackStack.Clear();
rootFrame.Navigate(typeof(MainPage));
}
示例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.");
}
示例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);
}
示例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);
}
示例15:
void IFrameNavigationEventSink.OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
}