public async void EnforcePageAppearsNotification(IPageViewModel page) { if (!appearedViews.Contains(page.GetHashCode())) { appearedViews.Add(page.GetHashCode()); await page.Appearing(); } }
public async Task PushModalAsync(IPageViewModel model, bool animated) { TransitionAnimationEnabled = animated; model.Navigator = this; if (ModalPresentedPage != null) { throw new Exception("Only one modal view at once"); } selfHandlingAppear = true; await lastDisappearing(); ModalPresentedPage = model; if (model != null) { await model.Appearing(); } selfHandlingAppear = false; }