简体   繁体   中英

WP7 ListBox Grouping

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.

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.

示例图片

您是否考虑过将不同的列表放在不同的项目中?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM