如何在 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:
其实我刚刚发现了一个在 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