WPF/Silverlight 问题:如何添加 AZ 列表项查看器?

发布于 2024-10-07 14:18:27 字数 359 浏览 0 评论 0原文

我是 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

随遇而安 2024-10-14 14:18:27

我假设你有一个 ObservableCollection<项目>所有项目均称为 OC。

您所需要的只是根据字母创建另一个列表并将其绑定到列表框。

char K='A';
List<Item> ListLetter = (from Item C in OC
where C.Name.StartWith(K)
select C).ToList();

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.

char K='A';
List<Item> ListLetter = (from Item C in OC
where C.Name.StartWith(K)
select C).ToList();
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文