增加ViewModelBase 生命周期控制View
This commit is contained in:
1 parent
30a6a5ea24
commit
9b9e4cbd82
8 files changed
+163
-8
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using Prism.Mvvm;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Store.Management.Framework.Controls;
|
||||
|
||||
public abstract class ViewModelBase : BindableBase
|
||||
{
|
||||
protected internal virtual void OnLoaded() { }
|
||||
protected internal virtual void OnUnloaded() { }
|
||||
protected internal virtual void OnActivated() { }
|
||||
protected internal virtual void OnDeactivated() { }
|
||||
protected internal virtual void OnClosing(CancelEventArgs e) { }
|
||||
protected internal virtual void OnClosed() { }
|
||||
}
|
||||
Reference in new issue
Block a user