private async void UpScroll_Clicked(object sender, EventArgs e)
        {
            try
            {
                await scrollView.ScrollToAsync(layout0, ScrollToPosition.Start, true);

                await UpScroll.FadeTo(0);

                UpScroll.IsVisible = false;
            }
            catch { }
        }
Example #2
0
        protected override void OnParentSet()
        {
            base.OnParentSet();

            try
            {
                if (Parent != null)
                {
                    scrollView.ScrollToAsync(grid, ScrollToPosition.Start, true);
                    UpScroll.FadeTo(0);
                    UpScroll.IsVisible = false;
                }
            }
            catch { }
        }
        private async void ScrollView_Scrolled(object sender, ScrolledEventArgs e)
        {
            try
            {
                if (e.ScrollY > 0)
                {
                    await UpScroll.FadeTo(1);

                    UpScroll.IsVisible = true;
                }
                else
                {
                    await UpScroll.FadeTo(0);

                    UpScroll.IsVisible = false;
                }
            }
            catch { }
        }