增加ViewModelBase 生命周期控制View

This commit is contained in:
chfei committed 2026-11-13 11:07:41 +08:00
1 parent 30a6a5ea24
commit 9b9e4cbd82
8 files changed
+163 -8

No files matched your search

@@ -26,6 +26,8 @@ public abstract class FrameworkApplication : PrismApplication
private IStatusBarService StatusBarService;
private IMessageBoxService MessageBoxService;
private static bool FatalShutdown = false;
static FrameworkApplication() => Controls.ViewLifecycle.Register();
protected FrameworkApplication()
{
DispatcherUnhandledException += OnDispatcherUnhandledException;