Viewmodels are now maintained throughout the app lifecycle

This commit is contained in:
watsonb8
2019-07-15 15:03:59 -04:00
parent 00b39b1d84
commit a3937e78da
9 changed files with 70 additions and 15 deletions

View File

@ -1,6 +1,7 @@
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
namespace Aurora.Design.Views
{
@ -10,6 +11,13 @@ namespace Aurora.Design.Views
{
}
#region Lifecycle
public virtual void OnActive() { }
public virtual void OnInactive() { }
#endregion
#region INotifyPropertyChanged Implementation
public bool SetProperty<T>(ref T storage, T value, [CallerMemberName] string propertyName = null)
{