/// <summary> /// This method controls enabling and disabling of the SwipeRefreshLayout. /// </summary> /// <param name="scrollInformation">Scroll information from the screen</param> public void ScrollYChanged(ScrollInformation scrollInformation) { // Disable SwipeRefreshLayout when user scrolled down if (scrollInformation.Y > 0 && _swipeRefreshLayout.Enabled) { _swipeRefreshLayout.Enabled = false; } // if the user is at the top of the screen, enable SwipeRefreshLayout if (scrollInformation.Y == 0 && !_swipeRefreshLayout.Enabled) { _swipeRefreshLayout.Enabled = true; } }
public void ScrollYChanged(ScrollInformation scrollInformation) { if (scrollInformation.Y > 0 && _swipeRefreshLayout.Enabled) { this._swipeRefreshLayout.Enabled = false; } // if the user is at the top of the screen, enable SwipeRefreshLayout if (scrollInformation.Y == 0 && !_swipeRefreshLayout.Enabled) { this._swipeRefreshLayout.Enabled = true; } this._scrollPositions[this._pager.CurrentItem] = scrollInformation.Y; }
public void ScrollYChanged(ScrollInformation scrollInformation) { }