コード例 #1
0
 public async void EnforcePageAppearsNotification(IPageViewModel page)
 {
     if (!appearedViews.Contains(page.GetHashCode()))
     {
         appearedViews.Add(page.GetHashCode());
         await page.Appearing();
     }
 }
コード例 #2
0
        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;
        }