在ListView的WP8增量加载 [英] Incremental Loading in ListView WP8

查看:122
本文介绍了在ListView的WP8增量加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看了一下如何做增量加载,当我们滚动到列表视图的底部,但如何实现延迟加载,当我们滚动到列表顶部的文章。我想更多的项目时,用户到达顶部添加到列表的顶部。有什么办法,我们可以做到这一点。

I have read the articles about how to do incremental loading when we scroll to bottom of the list view, but how to achieve lazy loading when we scroll to top of the list. I want to add more items to the top of the list when the user reaches the top. Is there any way we can achieve this.

推荐答案

找到一个解决方案。 。旋转两个控件

Found a solution for this. Rotate both controls.

有关如 - >

< ListView的X:名称=GridViewMainIncrementalLoadingThreshold =2RenderTransformOrigin =0.5,0.5>
< ListView.RenderTransform>
< RotateTransform角=180>< / RotateTransform>
< /ListView.RenderTransform>
< ListView.ItemContainerStyle>
<风格的TargetType =ListViewItem的>
< setter属性=Horizo​​ntalContentAlignmentVALUE =弹力/>
< setter属性=VerticalContentAlignmentVALUE =弹力/>
< /样式和GT;
< /ListView.ItemContainerStyle>
< ListView.Resources>
<的DataTemplate X:键=DataTemplateGridViewMain>
<电网的Horizo​​ntalAlignment =拉伸背景=#FF7C1A9BRenderTransformOrigin =0.5,0.5>
< Grid.RenderTransform>
< RotateTransform角=180/>
< /Grid.RenderTransform>
< TextBlock中的Horizo​​ntalAlignment =左文本={结合}VerticalAlignment =中心字号=20的FontFamily =坦帕斯三世ITC/>
< /网格和GT;
< / DataTemplate中>
< /ListView.Resources>
< ListView.ItemTemplate>
<静态资源的ResourceKey =DataTemplateGridViewMain/>
< /ListView.ItemTemplate>
< /&的ListView GT;
























为我工作。

这篇关于在ListView的WP8增量加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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