Пример #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();
        }
Пример #2
0
        public virtual async Task MoveBackAsync()
        {
            if (!CanMoveBack)
            {
                return;
            }

            var indexOfPreviousPage = NavigationStrategy.GetIndexOfPreviousPage(this);

            SetCurrentPage(indexOfPreviousPage);

            RaiseMovedBack();
        }
Пример #3
0
        public virtual async Task MoveBackAsync()
        {
            if (!CanMoveBack)
            {
                return;
            }

            var indexOfPreviousPage = NavigationStrategy.GetIndexOfPreviousPage(this);

            SetCurrentPage(indexOfPreviousPage);

            MovedBack?.Invoke(this, EventArgs.Empty);
        }
Пример #4
0
        public virtual async Task MoveBackAsync()
        {
            if (!CanMoveBack)
            {
                return;
            }

            int indexOfPreviousPage = NavigationStrategy.GetIndexOfPreviousPage(this);

            SetCurrentPage(indexOfPreviousPage);

            MovedBack.SafeInvoke(this);
        }