Exemplo n.º 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;
            }
        }
Exemplo n.º 2
0
 void ScrollToCurrentPage()
 {
     _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), true);
 }