到达最后一项时WP7自动增长列表框

WP7 Auto Grow ListBox upon reaching the last item(到达最后一项时WP7自动增长列表框)
本文介绍了到达最后一项时WP7自动增长列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现一种效果,当用户向下滚动到最后一项时,会将更多项附加到列表中.我还没有找到确定用户是否滚动到列表末尾的方法.当用户到达列表底部时,我没有看到 ListBox 上触发的事件.告诉我一个项目何时被滚动到视图中的东西会很棒,但据我所知,没有这样的东西.

I'm trying to achieve an effect where more items are appended to the list when the user scrolls down to the last item. I haven't found a way to determine if the user has scrolled to the end of the list. I don't see a event on ListBox that is fired when the user reaches the bottom of the list. Something that tells me when an item has been scrolled into view would be great, but as far as I can tell, there is nothing like that.

这在 WP7 中是否可行?

Is this even possible in WP7?

另一种说法是,我们能否检测到列表何时反弹"?

Another way of saying this is, can we detect when a list has "bounced"?

推荐答案

Daniel Vaughan 在 http://danielvaughan.orpius.com/post/Scroll-Based-Data-Loading-in-Windows-Phone-7.aspx

Daniel Vaughan has posted an example of how to detect for this at http://danielvaughan.orpius.com/post/Scroll-Based-Data-Loading-in-Windows-Phone-7.aspx

这篇关于到达最后一项时WP7自动增长列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)