コード例 #1
0
        private async void ScrollView_Scrolled(object sender, ScrolledEventArgs e)
        {
            if (!(sender is ScrollView scrollView))
            {
                return;
            }

            await GoToTopListVisibility.FadeTo(1, 200, Easing.Linear);

            var scrollingSpace = scrollView.ContentSize.Height - scrollView.Height - 25;

            if (scrollingSpace > e.ScrollY)
            {
                return;
            }

            ScrolledToBottom += 1;

            if (ScrolledToBottom == 1)
            {
                Loading loading = new Loading();
                repeater.Children.Add(loading);
                await Task.Delay(1000);

                FillRepeater();
                repeater.Children.Remove(loading);
            }
        }
コード例 #2
0
        private async void GoTopList_Clicked(object sender, EventArgs e)
        {
            await Scroll.ScrollToAsync(0, 0, true);

            await GoToTopListVisibility.FadeTo(0, 800, Easing.Linear);
        }