void PageController_DidFinishAnimating(object sender, UIPageViewFinishedAnimationEventArgs e)
 {
     if (e.Finished)
     {
         EnablePager(true);
     }
 }
 private void DidTransition(object sender, UIPageViewFinishedAnimationEventArgs e)
 {
     if (e.Completed)
     {
         var viewController = _pageViewController.ViewControllers[0] as XBoardPageViewController;
         _pageControl.CurrentPage = viewController.Index;
     }
 }
Example #3
0
 private void OnPageSwiped(object sender, UIPageViewFinishedAnimationEventArgs e)
 {
     if (e.Completed)
     {
         var index = this.children.ToList().IndexOf(this.pager.ViewControllers[0]);
         this.bar.Select(index, true);
     }
 }
 void PageViewController_DidFinishAnimating(object sender, UIPageViewFinishedAnimationEventArgs e)
 {
     if (e.Completed)
     {
         CurrentIndex = TempIndex;
         SetCurrentIndicatorPage(CurrentIndex);
         supportSlideBase.SendOnPageChanged(CurrentIndex);
     }
 }
 private void OnPageViewController_DidFinishAnimating(object sender, UIPageViewFinishedAnimationEventArgs e)
 {
     if (e.Completed)
     {
         var viewController = _pageViewController.ViewControllers[0] as XBoardPageViewController;
         _currentPageViewIndex = viewController.Index;
         ViewModel.SwitchDivisionCommand.Execute(viewController.Index);
         _visibleViewController = viewController;
     }
 }
        void HandlePageViewControllerDidFinishAnimating(object sender, UIPageViewFinishedAnimationEventArgs e)
        {
            if (pageViewController.ViewControllers.Length == 0)
            {
                return;
            }

            SelectedViewController = pageViewController.ViewControllers[0];
            var index = ViewControllers.IndexOf(SelectedViewController);

            TabBar.SelectedIndex = index;
            lastSelectedIndex    = index;
        }
Example #7
0
 void PageController_DidFinishAnimating(object sender, UIPageViewFinishedAnimationEventArgs e)
 {
     if (e.Completed)
     {
         var controller = (ViewContainer)pageController.ViewControllers[0];
         var position   = Source.IndexOf(controller.Tag);
         isSwiping        = true;
         Element.Position = position;
         prevPosition     = position;
         isSwiping        = false;
         SetIndicatorsCurrentPage();
         Element.PositionSelected?.Invoke(Element, position);
     }
 }
Example #8
0
 void PageController_DidFinishAnimating(object sender, UIPageViewFinishedAnimationEventArgs e)
 {
     if (e.Finished)
     {
         var controller = (ViewContainer)pageController.ViewControllers[0];
         var position   = controller.Tag;
         isSwiping        = true;
         Element.Position = position;
         prevPosition     = position;
         isSwiping        = false;
         SetIndicators();
         Element.PositionSelected?.Invoke(Element, EventArgs.Empty);
     }
 }
Example #9
0
 void PageController_DidFinishAnimating(object sender, UIPageViewFinishedAnimationEventArgs e)
 {
     if (e.Completed)
     {
         var controller = (ViewContainer)pageController.ViewControllers[0];
         var position   = Source.IndexOf(controller.Tag);
         isChangingPosition = true;
         Element.Position   = position;
         prevPosition       = position;
         isChangingPosition = false;
         SetArrowsVisibility();
         SetIndicatorsCurrentPage();
         Element.SendPositionSelected();
         Element.PositionSelectedCommand?.Execute(null);
     }
 }
Example #10
0
        void PageController_DidFinishAnimating(object sender, UIPageViewFinishedAnimationEventArgs e)
        {
            if (e.Completed)
            {
                var controller = (ViewContainer)pageController.ViewControllers[0];
                var position   = Source.IndexOf(controller.Tag);
                isSwiping        = true;
                Element.Position = position;
                prevPosition     = position;
                isSwiping        = false;
                SetIndicatorsCurrentPage();
                Element.SendPositionSelected();

                Console.WriteLine("pageController.ChildViewControllers count = " + pageController.ChildViewControllers.Count());
            }
        }
        void PageController_DidFinishAnimating(object sender, UIPageViewFinishedAnimationEventArgs e)
        {
            if (e.Completed)
            {
                var controller = (ViewContainer)pageController.ViewControllers[0];
                var position   = controller.Tag;
                Element.Position = position;

                ConfigurePageControl();

                if (Element.PositionSelected != null)
                {
                    Element.PositionSelected(Element, EventArgs.Empty);
                }
            }
        }
		public void HandlePageViewControllerDidFinishAnimating (object sender, UIPageViewFinishedAnimationEventArgs e)
		{
			if (!e.Completed)
				return;
			
			SetFavoriteButtonImage ();
		}