I have a tabbed MDI application, where the dock site only contains document windows, which are my own class derived from DocumentWindow. Following the help file, I have set a unique SerializationId and set SerializationBehavior = All.
When I look at the serialized XML, it is reasonable.
When I deserialize, it doesn't work. First I create all the documents and add them to the site's DocumentWindows collection. This is done correctly because if I comment out the layout deserialization, I can see the tabbed windows. But when I call the deserializer LoadFromString(), all my windows get closed.
If I reverse the order and set both lazy load and CanKeepExistingDocumentWindowsOpen to true, my document windows are open but the layout is not applied.
I really need this to work.
Thanks.
-John.