private void ProcessPageDisappearing(bool isPop)
 {
     if (isPop)
     {
         _currentPage.RemoveFromNavigationRenderer(this);
         _currentPage.Dispose();
     }
     else
     {
         _currentPage.SetVisibility(ViewStates.Gone);
         _currentPage.SendDisappearing();
     }
     _currentAnimations.Clear();
     SetNavAnimationInProgress(false);
 }
 private void ProcessPageAppearing(IXPage page, bool isPop)
 {
     if (page.GetParent() != this)
     {
         page.AddToNavigationRenderer(this);
     }
     else
     {
         page.SendAppearing();
     }
     if (!isPop && page.IsNeedToForceLayout)
     {
         Element.ForceLayout();
     }
     page.SetVisibility(ViewStates.Visible);
 }