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() { ((Platform)Element.Platform).NavAnimationInProgress = true; _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), UseAnimations); ((Platform)Element.Platform).NavAnimationInProgress = false; }
void ScrollToCurrentPage() { _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), true); }
void ScrollToCurrentPage() { _viewPager.SetCurrentItem(Element.Children.IndexOf(Element.CurrentPage), UseAnimations); }