添加关闭窗口程序最小化到通知栏

This commit is contained in:
2025-07-07 14:01:37 +08:00
parent 6991ab501a
commit c473c500d8
5 changed files with 61 additions and 1 deletions

View File

@@ -47,6 +47,7 @@ public partial class App : Application
protected override async void OnStartup(StartupEventArgs e)
{
base.OnStartup(e);
ShutdownMode = ShutdownMode.OnExplicitShutdown;
await Host.StartAsync();
try