如何在 Windows Phone 8 中使用 LongListSelector 实现下拉刷新? [英] How does one implement pull-to-refresh with a LongListSelector in Windows Phone 8?

查看:22
本文介绍了如何在 Windows Phone 8 中使用 LongListSelector 实现下拉刷新?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Microsoft.Phone.Controls 程序集中提供的现成 LongListSelector 编写一个新的 WP8 应用程序.谁能提供一个实现下拉刷新的代码示例,最初由 Tweetie 在 iPhone 上流行,现在在 iOS 和 Android 上很常见?现有示例使用非标准控件,我想在 WP8 中保持我对 LongListSelector 的使用.

I am writing a new WP8 app using the off-the-shelf LongListSelector that is shipped in the Microsoft.Phone.Controls assembly. Can anyone provide a code example that implements pull-to-refresh, originally made popular by Tweetie for iPhone and now common on iOS and Android? The existing examples use non-standard controls and I'd like to maintain my use of LongListSelector in WP8.

编辑

我在 StackOverflow 上找到了一个很好的答案,其中描述了 Twitter 示例以及如何更详细地执行此操作:

I have found a good answer on StackOverflow describing the Twitter sample and how to do this in more detail:

使用 LongListSelector 进行连续分页

推荐答案

其实我刚刚发现了一个在 2012 年 11 月 30 日上传到 Windows Phone Dev Center 的项目,它使用 Twitter Search 和 Windows Phone 8 LongListSelector 实现了无限滚动".

Actually, I just discovered a project uploaded to the Windows Phone Dev Center on November 30, 2012 that implements "infinite scrolling" using Twitter Search and Windows Phone 8 LongListSelector.

在以下位置下载此项目:http://code.msdn.microsoft.com/wpapps/TwitterSearch-Windows-b7fc4e5e

Download this project at: http://code.msdn.microsoft.com/wpapps/TwitterSearch-Windows-b7fc4e5e

这篇关于如何在 Windows Phone 8 中使用 LongListSelector 实现下拉刷新?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆