Problem

DockSiteLayoutSerializer LoadFromString removing first registered ToolWindow

Posted 7 months ago by Avatar Gerald

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 7 months ago by Actipro Software Support - Cleveland, OH, USA

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
Information The latest build of this product (2018.1 build 0672) was released 27 days ago, which was after the last post in this thread.

Add a Comment

Please log in to a validated account to post comments.