DockSiteLayoutSerializer LoadFromString removing first registered ToolWindow

Docking/MDI for WPF Forum

Posted 6 years ago by Gerald
Version: 17.2.0661
Platform: .NET 4.6
Environment: Windows 10 (64-bit)
Avatar

We're trying to implement persisting ToolWindows state, location in the DockSite of our application.
We create our ToolWindow view models and assign them to the ToolItemsSource collection property of DockSite. All our tool window view models have a unique SerializationId.

Implementation:
We call the DockSiteLayoutSerializer LoadFromString in the Loaded event of our DockSiteView. And for saving, we have added DockSiteLayoutSerializer SaveToString in the Closing event of our MainWindow.
So the problem is, when we re-open the application the first item in our ToolWindowViewModels collection always gets closed (even if it is added in the saved serialized layout string) triggered by LoadFromString call.

Do you have any idea why the first ToolWindow view model in the collection always gets deleted when LoadFromString is called? Any help would be appreciated.

Thanks,

Gerald

Comments (1)

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

Hi Gerald,

I'm not sure, we haven't really seen that problem happen.  Can you put together a new simple sample project that shows it happening so we can debug with it?  Please send that to our support address and mention this thread in your e-mail.  Also be sure to remove the bin/obj folders of the ZIP you send and rename the .zip file extension so it doesn't get spam blocked.  Thanks!


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.