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(); }
public virtual async Task MoveBackAsync() { if (!CanMoveBack) { return; } var indexOfPreviousPage = NavigationStrategy.GetIndexOfPreviousPage(this); SetCurrentPage(indexOfPreviousPage); RaiseMovedBack(); }
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); }