This is a migrated thread and some comments may be shown as answers.

Simple RadPaneGroup q: Items.Count

1 Answer 12 Views
Docking
This is a migrated thread and some comments may be shown as answers.
C Bates
Top achievements
Rank 1
C Bates asked on 17 Dec 2009, 06:01 PM

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?

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 18 Dec 2009, 01:21 PM
Hello C Bates,

 The code you use means: "Add newPane at the right side of the mapGroup". This acts like you dragged the pane over the group, the compass appeared and you dropped the group at the right compass indicator. If you need to add a pane to a group you could use its Items collection or to use the Center option (it will act like you dropped the pane over the center indicator).

 Hope this helps.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Docking
Asked by
C Bates
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or