
I am using layout serialization with ToolWindowDeserializationBehavior = LazyLoad. How do I specify a default window docking position that is only used if the window does not have serialized layout data?
I am using layout serialization with ToolWindowDeserializationBehavior = LazyLoad. How do I specify a default window docking position that is only used if the window does not have serialized layout data?
Hi Thomas,
I don't think there is a way to know if a tool window had layout data in the XML other than if you search in the layout XML for a tool window element with the name of your tool window. If you do that, then following a layout load, you could scan through the DockSite.ToolWindows collection and for any that have IsOpen = false and didn't have layout data in the XML, programmatically dock them somewhere in the layout.
Please log in to a validated account to post comments.