Toolwindow dissappears after deserializing layout

Docking/MDI for WPF Forum

Posted 8 years ago by Alexandre De Riemaecker
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 8 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 (v2019.1 build 0681) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.