Silverlight 中的排序列表框 (Sketchflow)

发布于 2024-08-26 22:22:50 字数 284 浏览 3 评论 0原文

我有一个包含多个列并绑定到数据源 (XML) 的列表框,如下所示。

<ListBox x:Name="lstBox1" Background="#FFC5EFFD" Margin="7,50,10,15" ItemTemplate="{StaticResource ItemsPanelTemplate1}" ItemsSource="{Binding BPICollection}" BorderThickness="0"/>

我试图弄清楚如何对列表框中的特定列进行排序。

I have a Listbox with multiple columns and bound to a data source (XML) as shown below.

<ListBox x:Name="lstBox1" Background="#FFC5EFFD" Margin="7,50,10,15" ItemTemplate="{StaticResource ItemsPanelTemplate1}" ItemsSource="{Binding BPICollection}" BorderThickness="0"/>

I'm trying to figure out how to sort a particular column in the listbox.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

喜爱皱眉﹌ 2024-09-02 22:22:50

听起来数据网格可能更适合您的情况。它有列,并且可以按各个列排序。它非常可定制。如果您确实想使用列表框,您可以发布模板和数据源吗?

It sounds like the datagrid might be more appropriate for your situation. It has columns, and can sort by individual columns. It is very customizable. If you do want to use a listbox, could you post the template and what the datasource looks like?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文