Deserializing a DockSiteLayout with ToolWindowsOnly set closes rafted document windows

Docking/MDI for WPF Forum

Posted 6 years ago by Michael Clarke
Version: 13.2.0592
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

We would like to load previously saved tool window layouts without affecting any document window. This can be achieved for docked document windows, but rafted document windows always appear to be closed.

Modifying the serialized window layout XML by removing relevant "RaftingHosts" does not prevent windows from closing.

I have also tried avoiding the close by Cancelling the DockSite.WindowClosing event. This works to prevent the close, but the Window can then no longer be repositioned or closed manually.

Is this possible?


We are currently saving the window layout with the following (note the ToolWindowsOnly option):

var layoutSerializer = new DockSiteLayoutSerializer { SerializationBehavior = DockSiteSerializationBehavior.ToolWindowsOnly };
return layoutSerializer.SaveToString(dockSite);

Comments (3)

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

Hi Michael,

Thanks for reporting this.  We'll fix it for the next version.


Actipro Software Support

Posted 6 years ago by Valéry Sablonnière - Staubli
Avatar

Hello,

I would like to know if this version will be released really soon, we need this fix four our next release which is planned for this end of the week.

Best regards,

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

Hello, the 2014.1 version that contains the fix came out yesterday.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) 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.