protected override void Dispose(bool disposing) { if (disposing) { Vm?.Dispose(); Vm = null; } base.Dispose(disposing); }
public ItemDetailsPage() { this.InitializeComponent(); this.Unloaded += (s, e) => { Vm.Dispose(); scrollerPropertySet.Dispose(); Vm = null; }; }
public void Dispose() { Vm?.Dispose(); }