Toolwindow dissappears after deserializing layout

Docking/MDI for WPF Forum

Posted 13 years ago by (Anonymous)
Version: 11.1.0542
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
Avatar
I noticed that if you load a layout that does not contain any entry for a certain toolwindow (e.g. we add a new toolwindow to the xaml, but the layout pre-dates the change), the window will dissappear after layout deserialization.

Is this a normal behavior? How can I avoid this? We want to add a new ToolWindow to our application without resetting the serialized layout.

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Alexandre,

Yes, that is the normal behavior. The DockSite or serializer would not know where any "new" ToolWindows should be placed. You would need to open the ToolWindow manually after restoring the layout. You can see if a ToolWindow is in the layout file by checking the DockSiteLayoutSerializer.RootNode.ToolWindows and comparing it to DockSite.ToolWindows. You can then call the ToolWindow.Dock method or AutoHide method as needed.


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.