Layout serialization and default positions

Docking/MDI for WPF Forum

Posted 9 years ago by Thomas
Version: 14.2.0610
Avatar

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?

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

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.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.