ViewModelWithLifecycle Class

Com.MarcusTS.LifecycleAware

ViewModelWithLifecycle Class

Use this as the basis of all view models if possible. If not possible in a few cases, copy this code into your other classes as-is and it will work the same way. Implements the IViewModelWithLifecycle Implements the IViewModelWithLifecycle Implements the Object

Namespace:  Com.MarcusTS.LifecycleAware.ViewModels
Assembly:  Com.MarcusTS.LifecycleAware (in Com.MarcusTS.LifecycleAware.dll)

Syntax


public class ViewModelWithLifecycle : IViewModelWithLifecycle
Public Class ViewModelWithLifecycle _
	Implements IViewModelWithLifecycle
public ref class ViewModelWithLifecycle : IViewModelWithLifecycle

Remarks


REMEMBER to set the AppLifecycleReporter to the current app and the PageLifecycleReporter to the parent page. The event ties are weak and non-binding.

Inheritance Hierarchy


Object
  Com.MarcusTS.LifecycleAware.ViewModels..::..ViewModelWithLifecycle