增加ViewModelBase 生命周期控制View
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user