在WPF中分页Listbox控件

I have a WPF ListBox with it's ItemSource property bound to an ObservableCollection. Each ListBox Item has many controls that could take some time to load up.

I would like to only display/load 5 ListBox items at a time, with some paging support or a "Next" button or something similar.

Currently I plan to do this manually and just keep two different collections. One would be the master collection with all the objects, and other would be the ListBox's collection where i would just remove 5, and put in a new 5 objects. I was just curious if there is something built in that would make my job a bit easier in this situation, i'm very new to WPF and all the binding techniques, and I have a habit of doing everything the old fashion and manual way, but I'd like to start using some of the newer 'quicker' techniques.

Thanks

#0

just look into Bag of Tricks by Kevin

https://github.com/thinkpixellab/bot

you can see the page list viewer.... in the examples...

推荐文章

JMS传输v/s MQ传输

JMS传输v/s MQ传输

推荐文章

远程服务器返回错误:(401)未经授权

远程服务器返回错误:(401)未经授权

推荐文章

如何在Sharepoint 2007调查中将问题分组并创建描述

如何在Sharepoint 2007调查中将问题分组并创建描述

推荐文章

最有效的数据传输格式

最有效的数据传输格式

推荐文章

PHP:如何循环遍历动态数量的类

PHP:如何循环遍历动态数量的类

推荐文章

两个提交按钮一个方向

两个提交按钮一个方向

推荐文章

如何用mysql在php中创建类似Facebook的好友系统

如何用mysql在php中创建类似Facebook的好友系统

推荐文章

Javascript blur click不协同工作

Javascript blur click不协同工作

推荐文章

如何在C中获得与PHP单元测试相同的HMAC256结果?

如何在C中获得与PHP单元测试相同的HMAC256结果?

推荐文章

如何处理未能打开流的错误,帮助(javascript、ajax)

如何处理未能打开流的错误,帮助(javascript、ajax)

推荐文章

如何在WPF中使用C在用于3D动画的应用程序中启用WebBrowser#

如何在WPF中使用C在用于3D动画的应用程序中启用WebBrowser#

推荐文章

VB6 mySQL更新问题

VB6 mySQL更新问题

推荐文章

如何从silverlight应用程序捕获Post数据?

如何从silverlight应用程序捕获Post数据?

推荐文章

如何限制Android EditText字段中的特殊字符?

如何限制Android EditText字段中的特殊字符?

推荐文章

用c#.net访问或使用旧应用程序的foxpro数据

用c#.net访问或使用旧应用程序的foxpro数据

推荐文章

在Drupal中公开视图过滤器

在Drupal中公开视图过滤器