Reset Docksite Layout

Docking/MDI for WPF Forum

Posted 16 years ago by Alexandre De Riemaecker
Version: 4.5.0486
Avatar
I need to reset the layout of a docksite to it's beginning state, or rather the layout defined within the xaml. What would be the best way restore it?
For the moment, I only see the possiblity to build a new layout with the docksitelayoutserializer using an XmlDockSiteLayout object and assign it or to serialize a layout during runtime and use it as resource.
Both variants have the disavantadge that they have to be updated during development phases when changes occurs to the Docksite (and also another nested docksite).

Restoring the layout which was first defined within the xaml file would be more efficient. Is there any possiblity?

Comments (1)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
How about when you first load your Window before you load an old layout, serialize the default layout to a string and retain that somewhere. Then load your previously saved layout after.

This way you have your original default layout information you can restore to as needed.


Actipro Software Support

The latest build of this product (v24.1.3) 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.