示例#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()
 {
     _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), true);
 }