Hi,
How can I Expand/Collapse All.
I use the following code. But it throws the exception
What am I doing wrong?
private void ExpandAll(Collection<PivotHeaderCell> pivotHeaderCells) { foreach (PivotHeaderCell cell in pivotHeaderCells) { cell.IsExpanded = true; if (cell.Children.Count > 0) CollapseAll(cell.Children); } }
Thanks
Sangeetha
Sorry, here is the right code:
private void ExpandAll(Collection<PivotHeaderCell> pivotHeaderCells) { foreach (PivotHeaderCell cell in pivotHeaderCells) { cell.IsExpanded = true; if (cell.Children.Count > 0) ExpandAll(cell.Children); } }