Hello,
There is not a scrollToBottom
method.
If I scroll to bottom of the scrollview I can detect it
You could calculate the offset of the scrollview, then detect the end. Please refer to the following code:
<ScrollView Scrolled="scrollView_Scrolled">
<VerticalStackLayout>
...
/ScrollView >
Scrolled
event:
private void scrollView_Scrolled(object sender, ScrolledEventArgs e)
{
var scrollview = sender as ScrollView;
var space = scrollview.ContentSize.Height - scrollview.Height;
if (space <= e.ScrollY)
{
Debug.WriteLine("bottom---------------");
}
}
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.