Exemplo n.º 1
0
		public void UpdateIndicator(PagerTabStripViewController viewController, nint fromIndex, nint toIndex, nfloat progressPercentage, bool indexWasChanged)
		{
			if (!ShouldUpdateButtonBarView) return;
			ButtonBarView.Move(fromIndex, toIndex, progressPercentage, PagerScroll.Yes);
			if (ChangeCurrentIndexProgressive != null)
			{
				var oldCell = ButtonBarView.CellForItem(NSIndexPath.FromItemSection(CurrentIndex != fromIndex ? fromIndex : toIndex, 0)) as ButtonBarViewCell;
				var newCell = ButtonBarView.CellForItem(NSIndexPath.FromItemSection(CurrentIndex, 0)) as ButtonBarViewCell;
				ChangeCurrentIndexProgressive(oldCell, newCell, progressPercentage, indexWasChanged, true);
			}
		}
Exemplo n.º 2
0
		public void UpdateIndicator(PagerTabStripViewController viewController, nint fromIndex, nint toIndex)
		{
			if (!ShouldUpdateButtonBarView) return;
			ButtonBarView.MoveTo(toIndex, true, toIndex < fromIndex ? SwipeDirection.Right : SwipeDirection.Left, PagerScroll.Yes);

			if (ChangeCurrentIndex != null)
			{
				var oldCell = ButtonBarView.CellForItem(NSIndexPath.FromItemSection(CurrentIndex != fromIndex ? fromIndex : toIndex, 0)) as ButtonBarViewCell;
				var newCell = ButtonBarView.CellForItem(NSIndexPath.FromItemSection(CurrentIndex, 0)) as ButtonBarViewCell;
				ChangeCurrentIndex(oldCell, newCell, true);
			}
		}
 public void UpdateIndicator(PagerTabStripViewController viewController, nint fromIndex, nint toIndex)
 {
     BarView.MoveTo(toIndex, true);
 }
 public void UpdateIndicator(PagerTabStripViewController viewController, nint fromIndex, nint toIndex, nfloat progressPercentage, bool indexWasChanged)
 {
     BarView.Move(fromIndex, toIndex, progressPercentage);
 }
Exemplo n.º 5
0
        public virtual IList <UIViewController> GetViewControllers(PagerTabStripViewController pagerTabStripController)
        {
            Debug.Fail("Sub-class must implement the PagerTabStripDataSource viewControllers(for:) method");

            return(null);
        }
Exemplo n.º 6
0
		public override IList<UIViewController> GetViewControllers(PagerTabStripViewController pagerTabStripController)
		{
			throw new NotImplementedException();
		}