ScrolView : scrolling to Top or Bottom

AswathiPSAswathiPS USMember ✭✭
edited October 24 in Xamarin.Forms

Am using xamarin forms , page which contain scrollview . how to know the page is scrolling to TOP or BOTTOM

Tagged:

Posts

  • seanydaseanyda GBMember ✭✭✭✭✭

    In the ScrollView Scrolled Event it has two properties in the EventArgs, ScrollY and ScrollX.

     ScrollView sv = new ScrollView();
                sv.Scrolled += (sender, e) => {
                    e.ScrollY
                };
    

    e.ScrollY will tell you the finished Scroll position once it's been scrolled. You could store the previous scrolled position in a variable and if it's less then the current one then the user scrolled up, else they scrolled down.

  • AswathiPSAswathiPS USMember ✭✭

    Thanks @seanyda , Its Work for me :)

Sign In or Register to comment.