Exemplo n.º 1
0
        /// <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;
            }
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 3
0
 public void ScrollYChanged(ScrollInformation scrollInformation)
 {
 }