WP7 Auto Grow ListBox upon reaching the last item(到达最后一项时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自动增长列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:到达最后一项时WP7自动增长列表框
基础教程推荐
- 从 C# 控制相机设备 2022-01-01
- 将数据集转换为列表 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- 如果条件可以为空 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
