本文整理汇总了C#中Windows.UI.Xaml.Navigation.NavigationFailedEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# NavigationFailedEventArgs类的具体用法?C# NavigationFailedEventArgs怎么用?C# NavigationFailedEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
NavigationFailedEventArgs类属于Windows.UI.Xaml.Navigation命名空间,在下文中一共展示了NavigationFailedEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: FromNavigationFailedEventArgs
public static NavigatorFailedEventArgs FromNavigationFailedEventArgs(NavigationFailedEventArgs args)
=> args != null ? new NavigatorFailedEventArgs(args.Exception) { Handled = args.Handled } : null;
开发者ID:TorreyGarland,项目名称:Highway1.Universal,代码行数:2,代码来源:NavigatorFailedEventArgs.cs
示例17: 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>
async void OnNavigationFailed(object sender, NavigationFailedEventArgs e)
{
var ex = new Exception("Failed to load Page " + e.SourcePageType.FullName);
await WriteException(ex);
throw ex;
}
开发者ID:BryceEakin,项目名称:EakinHomeMonitoring,代码行数:11,代码来源:App.xaml.cs
示例18: Ns_CleanNavigationStackAfter_OnNavigationFailed
private static void Ns_CleanNavigationStackAfter_OnNavigationFailed(object sender, NavigationFailedEventArgs navigationFailedEventArgs)
{
Unsubscribe_CleanNavigationStackAfter(sender);
}
开发者ID:bondarenkod,项目名称:Eve,代码行数:4,代码来源:NavigationExtensions.cs
示例19: 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)
{
// TODO: Handle gracefully and log
throw new Exception("Failed to load Page " + e.SourcePageType.FullName);
}
开发者ID:AmadeusW,项目名称:Mirror,代码行数:10,代码来源:App.xaml.cs
示例20: FrameNavigationFailed
private void FrameNavigationFailed(object sender, NavigationFailedEventArgs e)
=> NavigationFailed?.Invoke(this, (NavigatorFailedEventArgs)e);
开发者ID:TorreyGarland,项目名称:Highway1.Universal,代码行数:2,代码来源:Navigator.cs
注:本文中的Windows.UI.Xaml.Navigation.NavigationFailedEventArgs类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论