WP7 ListBox Grouping

2020-05-29 01:27发布

Is there any in-built grouping for ListBoxes or another UI control? I would like to have a list but have some form of grouping or sections applied to the list. As shown below:

heading one
     list item one
     list item two
heading two
     list item one
     list item two
     list item three
     list item four

Is there anything available for such purpose without building something from scratch? I don't wish to mix a match multiple ListBoxes, rather I would prefer a solution where this was handled at the data binding level.

3条回答
姐就是有狂的资本
2楼-- · 2020-05-29 01:53

You want to look at the "Long List Selector" in the Silverlight for Windows Phone Toolkit

Its a control that looks+behaves just like the grouping behavior in contacts/etc on the phone.

example image

查看更多
何必那么认真
3楼-- · 2020-05-29 01:53

Have you considered putting the different lists in different items in a pivot?

查看更多
登录 后发表回答