public virtual void OnDisappearing(IViewModel viewModel) { if (viewModel != null && !IsSideMenuViewModel(viewModel)) { try { viewModel.BecameInvisible(); } catch (Exception e) { if (!viewModel.HandleException(e, () => OnDisappearing(viewModel), () => OnCancel(viewModel))) { throw; } } } }
public virtual void DidEnterBackground(IViewModel viewModel) { viewModel?.BecameInvisible(); }