My app has projects where a project can have several files. Like Visual Studio, some of the files will be open and they will be docked to various TabbedMdiContainers. When the user saves the project I SaveToString the DockSiteLayout and insert it into my project file.
When I open the project file I pull out the DockSiteLayout and I call DockSiteLayoutSerializer.LoadString. I can see that the Workspace XML has all my TabbedMdiContainers. But when I monitor the DockingWindowDeserializing events, I don't see any info to tell me into which TabbedMdiContainer I should put the individual DocumentWindows. For that matter I don't know how to put a DocumentWindow into a specific container.
I thought all this would be automatic but I don't see the layout for the DocumentWindows being preserved. No matter how my DocumentWindows are laid out, they always come back in one TabbedMdiContainer.
When I open the project file I pull out the DockSiteLayout and I call DockSiteLayoutSerializer.LoadString. I can see that the Workspace XML has all my TabbedMdiContainers. But when I monitor the DockingWindowDeserializing events, I don't see any info to tell me into which TabbedMdiContainer I should put the individual DocumentWindows. For that matter I don't know how to put a DocumentWindow into a specific container.
I thought all this would be automatic but I don't see the layout for the DocumentWindows being preserved. No matter how my DocumentWindows are laid out, they always come back in one TabbedMdiContainer.