简体   繁体   English

Windows Phone 8.1中的MVVM ListView增量加载

[英]Incremental loading with MVVM listview in windows phone 8.1

I have a Listview inside the Pivotitem, Listview ItemsSource binding with the viewmodel collections, its a dynamical collections contains 1000 more items in that, when I use incremental loading for listview its working fine, but inside the pivot with MVVM collection its not working, like when I change the pivot selected index its not working. 我在Pivotitem内有一个Listview,与Viewmodel集合绑定的Listview ItemsSource,它的动态集合包含1000多个项目,当我将增量加载用于listview时,它的工作正常,但是在带有MVVM集合的数据透视表中,它不起作用,例如当我更改数据透视表所选索引时,它不起作用。 Any other way to load the listview that could be more helpful. 任何其他加载列表视图的方法可能会更有帮助。

There are lots of possibilities for your issue, What exactly happens when you switch the pivot? 您的问题有很多可能性,切换枢轴时会发生什么? Most of the binding problems can be solved by resting the item source of the list, like this: 大多数绑定问题可以通过放置列表的项目源来解决,如下所示:

myList.ItemsSource = null; myList.ItemsSource = null; myList.ItemsSource = _itemsSource; myList.ItemsSource = _itemsSource;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM