XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.WinUIHelper

【DLL】WinUI的各种工具类,帮助开发者快速构建一个模块化的WinUI项目

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFEExtension.NetCore.WinUIHelper

Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

0e9d078
Tom Smith <132526994+XFEstudio@users.noreply.github.com>
提交于

代码差异

1 个文件 +6 -1
Modified README.zh-CN.md +6 -1
@@ -56,11 +56,16 @@ public App()
56 56 private void App_UnhandledException(object sender, Microsoft.UI.Xaml.UnhandledExceptionEventArgs e)
57 57 {
58 58 // 使用消息服务显示错误
59 if (ServiceManager.GetService<IMessageService>() is IMessageService messageService)
59 try
60 60 {
61 var messageService = ServiceManager.GetService<IMessageService>();
61 62 messageService.ShowMessage(e.Message, "发生错误", InfoBarSeverity.Error);
62 63 e.Handled = true;
63 64 }
65 catch
66 {
67 // IMessageService 未注册时忽略,避免在异常处理流程中再次抛出异常
68 }
64 69 }
65 70 ```
66 71