private async void SynchronizationContext_UnhandledException(object sender, WinRTExceptions.UnhandledExceptionEventArgs e) { e.Handled = true; await new MessageDialog("Synchronization Context Unhandled Exception:\r\n" + e.Exception.Message) .ShowAsync(); }
private void OnSynchronizationContextUnhandledException(object sender, WinRTExceptions.UnhandledExceptionEventArgs args) { args.Handled = true; Helper.ShowMessage("未处理错误:" + args.Exception.ToString(), "出错了"); }