Do we have any replacement control for `ExpandableListView(Android) / UITableView(iOS) in Windows Phone 8.1?
Asked
Active
Viewed 844 times
1 Answers
1
Any Control that supports Grouping
should do the trick.
I would use either a ListView
or a GridView
. Here are MSDN links, pay attention to the HeaderItemTemplate
/ ItemTemplate
.
How to Group Items in a List or Grid
To do what you want to do would require quite a bit of MVVM binding and VisualState
modification.
Another option would to create your own List with a collapsible <StackPanel>
as its DataTemplate.
My sample solution to collapse a ListBox, you can modify that to include another List as well.

Community
- 1
- 1

Chubosaurus Software
- 8,133
- 2
- 20
- 26
-
Can we add event on selection of group or Item in group? Can we collapse groups on click or by default make it collapse? – Ankush Madankar Oct 10 '14 at 13:20
-
@AnkushMadankar changes in selection are handle through the `SelectionChanged` event for most controls. It won't collapse by default, you will need to heavily modify the ` – Chubosaurus Software Oct 10 '14 at 17:59
-
@AnkushMadankar like I said before, you can always do a ItemControl with a nested
s, clicking on the top – Chubosaurus Software Oct 10 '14 at 18:02will hide/show it's child . When done correctly it will collapse and bring up any other items or expand and push any other items down -- hence the name "Stack" -- Panel.