
We would like to load previously saved tool window layouts without affecting any document window. This can be achieved for docked document windows, but rafted document windows always appear to be closed.
Modifying the serialized window layout XML by removing relevant "RaftingHosts" does not prevent windows from closing.
I have also tried avoiding the close by Cancelling the DockSite.WindowClosing event. This works to prevent the close, but the Window can then no longer be repositioned or closed manually.
Is this possible?
We are currently saving the window layout with the following (note the ToolWindowsOnly option):
var layoutSerializer = new DockSiteLayoutSerializer { SerializationBehavior = DockSiteSerializationBehavior.ToolWindowsOnly };
return layoutSerializer.SaveToString(dockSite);