Thank you for the provided information.
Note that although DocumentWindow and ToolWindow implement the same interface and have a common set of properties, they differ from each other in their run time behavior. The windows in RadDock are arranged in tab strips depending on the type of the window, for example, ToolWindows are arranged in ToolTabStrip and DocumentWindows are arranged in DocumentTabStrip.
However, it is possible to change programmatically DocumentWindow with a ToolWindow I could say that it is not recommended to do so. Since I am not familiar in details with your project it is up to you to choose which window to use.
RadDock control is a dynamic control and its containers for both DocumentWindow and ToolWindow are frequently recreated. The reason why a DockWindow is not saved to the .XML file can depend on the CloseAction property. Note that RadDock has two different methods (CloseWindow and RemoveWindow) which you can call if you want to remove a window. The result from these methods depends on the CloseAction property which can have one of these values:
- Close: this window is closed and detached (but not disposed) from its RadDock. You cannot manage it from RadDock collections anymore.
- Hide: this window is only closed (hidden) in RadDock. However, this window is not detached from its RadDock and you can manage it from the RadDock collections.
-CloseAndDispose: this window is closed and then disposed.
So, if a DocumentWindow/ToolWindow is disposed it may not be saved to the file.
Please refer to the following help articles for more information:
I hope this information helps. Should you have other questions do not hesitate to ask.
Progress is here for your business, like always. Read more
about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.