After executing this code:
RadDocumentPane newPane = newMapPane(index, mapName, newMap.MapLayoutRoot); |
mapGroup.AddItem(newPane, DockPosition.Right); |
index = mapGroup.Items.Count - 1; |
mapGroup.Items.Count == 0.
?!?
In the xaml, mapGroup is defined as:
<docking:RadPaneGroup x:Name="mapGroup" docking:RadDocking.SerializationTag="mapGroup">
<!-- The Maps area, RadDocumentPanes to be added later -->
</docking:RadPaneGroup>
How do I get to the collection of panes in my RadPaneGroup?