We are having problems loading a saved layout and I reproduced it with the project that George (Telerik Team) attached to this thread:
http://www.telerik.com/community/forums/wpf/docking/unable-to-dock-pane-after-a-loadlayout.aspx#1362147
Here are the steps:
1) Undock the Documents RadDocumentPane.
2) Enter a name in the textbox.
3) Click Save.
4) Click Load. Notice that this works.
5) Right click the Documents title bar and select "Floating".
6) Click Save.
7) Click Load. Notice the ArgumentOutOfRangeException indicating that the parameter name "index" is out of range.
If you compare the two XML documents that are produced by steps 3 and 6, you will see that a SelectedIndex of -1 appears for the RadPaneGroup named RadDocumentGroup in the second XML document. This appears to be the source of the exception.
The RadDocumentPane that used to exist in the Items group has been moved to a RadSplitContainer outside of the document host, which makes sense to me.
http://www.telerik.com/community/forums/wpf/docking/unable-to-dock-pane-after-a-loadlayout.aspx#1362147
Here are the steps:
1) Undock the Documents RadDocumentPane.
2) Enter a name in the textbox.
3) Click Save.
4) Click Load. Notice that this works.
5) Right click the Documents title bar and select "Floating".
6) Click Save.
7) Click Load. Notice the ArgumentOutOfRangeException indicating that the parameter name "index" is out of range.
If you compare the two XML documents that are produced by steps 3 and 6, you will see that a SelectedIndex of -1 appears for the RadPaneGroup named RadDocumentGroup in the second XML document. This appears to be the source of the exception.
<
RadSplitContainer
>
<
Items
>
<
RadPaneGroup
SerializationTag
=
"DocumentGroup"
SelectedIndex
=
"-1"
>
<
Items
/>
</
RadPaneGroup
>
</
Items
>
</
RadSplitContainer
>
The RadDocumentPane that used to exist in the Items group has been moved to a RadSplitContainer outside of the document host, which makes sense to me.
<
RadSplitContainer
InitialPosition
=
"FloatingOnly"
FloatingWidth
=
"737"
FloatingHeight
=
"515"
FloatingX
=
"1769"
FloatingY
=
"467"
IsInOpenWindow
=
"True"
WindowZIndex
=
"1"
RelativeWidth
=
"100"
RelativeHeight
=
"100"
IsAutoGenerated
=
"True"
>
<
Items
>
<
RadPaneGroup
RelativeWidth
=
"100"
RelativeHeight
=
"100"
IsAutoGenerated
=
"True"
SelectedIndex
=
"0"
>
<
Items
>
<
RadDocumentPane
SerializationTag
=
"DocumentPane"
IsDockable
=
"False"
Title
=
"Documents"
Header
=
"Documents"
CanUserClose
=
"False"
/>
</
Items
>
</
RadPaneGroup
>
</
Items
>
</
RadSplitContainer
>