Saving and restoring layout

Docking/MDI for WPF Forum

Posted 11 years ago by Rodion Pronin
Version: 13.2.0591


I have a docksite with toolwindows and documents inside. and my layout changes every time someone selects a different document (selected tab changes),what I want to accomplish is to bing each selected document with it's correspondent toolwindow layout setup and when selected restore it from previous state.

I understand that I need to store some kind of a HashTable with key being a doc and value being some arbitrary layout object, I'm just not sure what this object should be and how to save it upon deselection and restoring upon selection

Would you kindly steer me in the right direction of accomplishing that?

Thank you!

Comments (1)

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

Hi Rodion,

If you check out the documentation and samples on layout serialization, they will help you sort out how layout serialization works.  And in terms of your setup, the layout is saved as a string.  So you are correct, in your HashTable, the key would be a document and the value would be a string.

Actipro Software Support

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