示例#1
0
        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();
        }
示例#2
0
 private void OnSynchronizationContextUnhandledException(object sender, WinRTExceptions.UnhandledExceptionEventArgs args)
 {
     args.Handled = true;
     Helper.ShowMessage("未处理错误:" + args.Exception.ToString(), "出错了");
 }