Exemple #1
0
        public virtual async Task MoveBackAsync()
        {
            if (!CanMoveBack)
            {
                return;
            }

            var indexOfPreviousPage = NavigationStrategy.GetIndexOfPreviousPage(this);

            var isMoving = RaiseMovingBack(_currentPage, Pages.ElementAt(indexOfPreviousPage));

            if (!isMoving)
            {
                Log.Debug("Cancel move based on raised event returned arguments");
                return;
            }

            OnMovingBack();

            SetCurrentPage(indexOfPreviousPage);

            OnMovedBack();

            RaiseMovedBack();
        }
Exemple #2
0
        public virtual async Task MoveBackAsync()
        {
            if (!CanMoveBack)
            {
                return;
            }

            var indexOfPreviousPage = NavigationStrategy.GetIndexOfPreviousPage(this);

            SetCurrentPage(indexOfPreviousPage);

            RaiseMovedBack();
        }
Exemple #3
0
        public virtual async Task MoveBackAsync()
        {
            if (!CanMoveBack)
            {
                return;
            }

            var indexOfPreviousPage = NavigationStrategy.GetIndexOfPreviousPage(this);

            SetCurrentPage(indexOfPreviousPage);

            MovedBack?.Invoke(this, EventArgs.Empty);
        }
        public virtual async Task MoveBackAsync()
        {
            if (!CanMoveBack)
            {
                return;
            }

            int indexOfPreviousPage = NavigationStrategy.GetIndexOfPreviousPage(this);

            SetCurrentPage(indexOfPreviousPage);

            MovedBack.SafeInvoke(this);
        }