
Please see the serialisation below to understand the layout.
We need to be able to create new floating windows containing all child objects. This is all working fine and creates the RaftingWindows below. However, if I then add another DockSite (containing one or more DocumentWindows) to a floating window I can't determine it's parent programmatically?
How do I find the container programmatically (which relates to the RaftingWindow or TabMdiContainer)?
<SerializedLayout><DockSiteLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SerializationFormat="All" Version="2">
<AutoHideHost />
<Content xsi:type="Workspace">
<Content xsi:type="TabbedMdiHost">
<Content xsi:type="TabbedMdiContainer" SelectedWindowUniqueId="57a2da6a-4deb-47d1-814b-91c558ab299c">
<UIElement xsi:type="DocumentWindowRef" UniqueId="57a2da6a-4deb-47d1-814b-91c558ab299c" />
</Content>
</Content>
</Content>
<DocumentWindows>
<DocumentWindow UniqueId="57a2da6a-4deb-47d1-814b-91c558ab299c" SerializationId="Page1e3fedd6aa0f4ae680a215b4d66d0761" IsOpen="true" State="Document" />
<DocumentWindow UniqueId="ac95803a-bcc8-4501-a3c5-f8dcb8fd5222" SerializationId="Page8c9c1aa80dc34fad906eb94c26fbc52a" IsOpen="true" State="Document" />
<DocumentWindow UniqueId="71aebd28-09f7-46c8-9ad7-89f9c1f76ec3" SerializationId="Page9a018968eaae41ffa177328f3f90e235" IsOpen="true" State="Document" />
</DocumentWindows>
<RaftingHosts>
<RaftingHost UniqueId="67db9147-b305-4de3-96f4-c7372cf1967f" IsMaximized="false" Location="0,55" Size="1692,436">
<AutoHideHost />
<Content xsi:type="Workspace">
<Content xsi:type="TabbedMdiHost">
<Content xsi:type="TabbedMdiContainer" SelectedWindowUniqueId="ac95803a-bcc8-4501-a3c5-f8dcb8fd5222">
<UIElement xsi:type="DocumentWindowRef" UniqueId="ac95803a-bcc8-4501-a3c5-f8dcb8fd5222" />
</Content>
</Content>
</Content>
</RaftingHost>
<RaftingHost UniqueId="dcad8334-f0ea-48fe-8528-088341c39efb" IsMaximized="false" Location="0,55" Size="1692,436">
<AutoHideHost />
<Content xsi:type="Workspace">
<Content xsi:type="TabbedMdiHost">
<Content xsi:type="TabbedMdiContainer" SelectedWindowUniqueId="71aebd28-09f7-46c8-9ad7-89f9c1f76ec3">
<UIElement xsi:type="DocumentWindowRef" UniqueId="71aebd28-09f7-46c8-9ad7-89f9c1f76ec3" />
</Content>
</Content>
</Content>
</RaftingHost>
</RaftingHosts>
</DockSiteLayout></SerializedLayout>