开发者

Sorting Listbox in Silverlight (Sketchflow)

开发者 https://www.devze.com 2022-12-23 16:13 出处:网络
开发者_高级运维I have a Listbox with multiple columns and bound to a data source (XML) as shown below.

开发者_高级运维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.


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消