UPDATE:
It seems multiple objects can't have the same name if they will be added to a Telerik collection.
In our application, the content we added to the RadDockingPanes included a canvas, and the Canvas object was getting the same name for each pane.
newCanvas.Name = CanvasName;
When I removed that, it works as expected.
Using the Q3 release. In my xaml I have
<docking:RadDocking x:Name="Docking" Grid.Row="1" > |
<docking:RadSplitContainer x:Name="dockLeft" > |
<docking:RadPaneGroup x:Name="toolsGroup" > |
<docking:RadPane IsPinned="False" IsHidden="False" CanDockInDocumentHost="False"> |
<!-- stuff --> |
</docking:RadPane> |
<docking:RadPane IsPinned="False" IsHidden="False" CanDockInDocumentHost="False" CanUserClose="False"> |
</docking:RadPane> |
</docking:RadPaneGroup> |
</docking:RadSplitContainer> |
<docking:RadDocking.DocumentHost> |
<docking:RadSplitContainer x:Name="splitContainer1"> |
<docking:RadPaneGroup x:Name="mapGroup" > |
</docking:RadPaneGroup> |
<docking:RadPaneGroup x:Name="rightMapGroup"> |
</docking:RadPaneGroup> |
</docking:RadSplitContainer> |
</docking:RadDocking.DocumentHost> |
</docking:RadDocking> |
RadDocumentPane newPane = new RadDocumentPane(); |
newPane.Header = new TextBlock() { |
Text = "Header" |
}; |
newPane.Content = new TextBlock() { |
Text = "Content" |
}; |
newPane.CanFloat = false; |
newPane.CanDockInDocumentHost = false; |
newPane.CanUserClose = false; |
mapGroup.Items.Add(newPane); |
For the simple content shown above, this works as expected, for as many panes as I want to add.
However, with more complicated content:
Grid
-- Grid
---- StackPanel
---- Canvas
---- ScrollViewer
---------- Canvas
---------- Slider
etc.
The first pane adds as expected, but trying to add a second pane throws this exception:
Value does not fall within the expected range.
What am I doing wrong?
(mapGroup.AddItem(newPane, DockPosition.Left) works as expected, but that is not what I want.)
Thanks for the help...