WPF/Silverlight 问题:如何添加 AZ 列表项查看器?
我是 WPF/Silverlight 的新手,我想在应用程序中做的一件事是在列表框中显示一堆项目,但可以通过 AZ 选择器对其进行排序/访问,类似于您所拥有的iPhone 的联系人应用程序。
例如:单击 A 会将您带到以 A 开头分组的项目等。 对于其中包含很多项目的列表,可以很方便地跳转到您知道记录应该在的位置。
有第三方控制吗? (是的,工作量减少了!) 有免费的控制吗? (耶,懒惰,而且便宜!) 关于我为开始使用而准备的基本开箱即用布局项目/控件的任何指示,是我自己推出的吗?
我对 C#/.NET 有丰富的经验,只是 WPF/Silverlight、Expression Blend 的新手。
谢谢,我会将我的答案通过广播传达。
I am new to WPF/Silverlight, and one thing I'd like to do in an app is to display a bunch of items in a list box, but have it be sortable/accessible via an A-Z picker, similar to what you have on the iPhone's Contact app.
eg: Clicking A takes you to the items grouped as beginning w/ A, etc.
For a list w/ a lot of items in it, it's quite handy to jump ahead to exactly where you know a record should be.
Is there a 3rd party control for this? (yay less work!)
Is there a free control for this? (yay lazy, and cheap!)
Any pointers on the basic out of the box layout items/controls I'd put together to get it started were I to roll my own?
I'm experienced w/ C#/.NET, just new to WPF/Silverlight, Expression Blend.
Thanks, and I'll take my answer the air.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我假设你有一个 ObservableCollection<项目>所有项目均称为 OC。
您所需要的只是根据字母创建另一个列表并将其绑定到列表框。
I'll assume that you have an ObservableCollection< Item> called OC for all items.
all what you need is to create another list depending on the letter and bind it to the listbox like.