Exemplo n.º 1
0
        public void ArrowUpClick()
        {
            FixUpLimit();

            if (_arrowHolded)
            {
                return;
            }

            if (Percentage > ButtonPercentagePerPage)
            {
                UpdateContentPositionAnimated(Percentage - ButtonPercentagePerPage);
            }
            else
            {
                UpdateContentPositionAnimated(0);
            }

            if (BarDrag.Percentage < 100 - ButtonPercentagePerPage)
            {
                BarDrag.UpdateBarPositionAnimated(BarDrag.Percentage + ButtonPercentagePerPage);
            }
            else
            {
                BarDrag.UpdateBarPositionAnimated(100);
            }
        }
Exemplo n.º 2
0
 public void DownPosistion()
 {
     UpdateContentPositionAnimated(100);
     BarDrag.UpdateBarPositionAnimated(0);
 }
Exemplo n.º 3
0
 public void SetPosition(float percentage)
 {
     Content.UpdateContentPositionAnimated(percentage);
     Bar.UpdateBarPositionAnimated(100 - percentage);
 }