2 回答
TA贡献1872条经验 获得超3个赞
你可以尝试这样的事情:
private void ScrollView_OnScrolled(object sender, ScrolledEventArgs e)
{
if (!(sender is ScrollView scrollView))
return;
var scrollingSpace = scrollView.ContentSize.Height - scrollView.Height;
if (scrollingSpace > e.ScrollY)
return;
// load more content.
DisplayAlert("Alert", "End of scroll view detected", "OK");
}
TA贡献1712条经验 获得超3个赞
private void OnScrolled(object sender, ScrolledEventArgs e)
{
MyScrollView scrollView = sender as MyScrollView;
double scrollingSpace = scrollView.ContentSize.Height - scrollView.Height;
if (scrollingSpace <= e.ScrollY) // Touched bottom
// Do the things you want to do
}
- 2 回答
- 0 关注
- 94 浏览
添加回答
举报