Serialize/Deserialize Toolwindow

Docking/MDI for WPF Forum

Posted 9 years ago by Otto Liu
Version: 15.1.0622
Avatar

Dear Master

     I want to known is there a way to save the layout of a single toolwindow which maybe has several other window docked in it into a string, and restore the toolwindow from that string?

    What I really want to do is create a template(the xml string), and create any number of instances from that xml stirng when I need to do it.

Comments (1)

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

Hi Otto,

You can serialize the tool window layout of any DockSite to XML and then deserialize (restore) it later when appropriate.  If you have a nested DockSite within the one tool window, you can serialize that nested DockSite's layout.  Please see the documentation on layout serialization for how to do that.  Note that layout serialization/deserialization will save/restore the entire DockSite tool window layout.  It doesn't just operate on a single tool window.


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.