Пример #1
0
        void ScrollToCurrentPage()
        {
            if (Platform != null)
            {
                Platform.NavAnimationInProgress = true;
            }

            _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), Element.OnThisPlatform().IsSmoothScrollEnabled());

            if (Platform != null)
            {
                Platform.NavAnimationInProgress = false;
            }
        }
Пример #2
0
 void ScrollToCurrentPage()
 {
     ((Platform)Element.Platform).NavAnimationInProgress = true;
     _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), UseAnimations);
     ((Platform)Element.Platform).NavAnimationInProgress = false;
 }
Пример #3
0
 void ScrollToCurrentPage()
 {
     _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), true);
 }
Пример #4
0
 void ScrollToCurrentPage()
 {
     _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), UseAnimations);
 }