WPF崩溃重启

上传者: u013105923 | 上传时间: 2020-04-03 03:14:12 | 文件大小: 56KB | 文件类型: RAR
WPF遇到意外错误使其崩溃,这段简单的代码可以解决WPF崩溃后,程序重启,并且将错误信息记录到XML中!

文件下载

资源详情

[{"title":"( 37 个子文件 56KB ) WPF崩溃重启","children":[{"title":"WpfAppCollapseTest","children":[{"title":"WpfAppCollapseTest.v12.suo <span style='color:#111;'> 22.00KB </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"WpfAppCollapseTest.exe <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.vshost.exe.config <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.vshost.exe <span style='color:#111;'> 22.63KB </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.exe.config <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"App.xaml <span style='color:#111;'> 329B </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"Debug","children":[{"title":"WpfAppCollapseTest.exe <span style='color:#111;'> 11.50KB </span>","children":null,"spread":false},{"title":"App.g.i.cs <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest_MarkupCompile.cache <span style='color:#111;'> 287B </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.csproj.FileListAbsolute.txt <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"App.g.cs <span style='color:#111;'> 2.28KB </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.csproj.GenerateResource.Cache <span style='color:#111;'> 919B </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.csprojResolveAssemblyReference.cache <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"DesignTimeResolveAssemblyReferencesInput.cache <span style='color:#111;'> 6.94KB </span>","children":null,"spread":false},{"title":"MainWindow.g.cs <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false},{"title":"WpfAppCollapseTest.g.resources <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.pdb <span style='color:#111;'> 31.50KB </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest_MarkupCompile.i.cache <span style='color:#111;'> 286B </span>","children":null,"spread":false},{"title":"MainWindow.g.i.cs <span style='color:#111;'> 4.88KB </span>","children":null,"spread":false},{"title":"MainWindow.baml <span style='color:#111;'> 1.58KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"App.xaml.cs <span style='color:#111;'> 2.98KB </span>","children":null,"spread":false},{"title":"WpfAppCollapseTest.csproj <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false},{"title":"App.config <span style='color:#111;'> 187B </span>","children":null,"spread":false},{"title":"MainWindow.xaml <span style='color:#111;'> 1.17KB </span>","children":null,"spread":false},{"title":"Properties","children":[{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 201B </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"Resources.Designer.cs <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false}],"spread":true},{"title":"MainWindow.xaml.cs <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false}],"spread":true},{"title":"WpfAppCollapseTest.sln <span style='color:#111;'> 1023B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • 卖萌小老头 :
    思路很好 利用了 完美解决我的问题
    2018-10-26
  • sinat_39142168 :
    思路很好,值得学习
    2017-09-28
  • yehua124 :
    可以参考一下,不错
    2017-02-21
  • sctlsx :
    可以参考一下,不错
    2016-10-09

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明