void ScrollToCurrentPage() { if (Platform != null) { Platform.NavAnimationInProgress = true; } _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), Element.OnThisPlatform().IsSmoothScrollEnabled()); if (Platform != null) { Platform.NavAnimationInProgress = false; } }
void ScrollToCurrentPage() { _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), true); }