Restore layout

Docking/MDI for WPF Forum

Posted 10 years ago by Craig - Nstrument
Avatar
I was wondering how to interface to your layout system to restore dynamicly created content. Right now our system has a part factory that takes in a string key that identifies the part and it's instance. Looking at the DockSiteLayoutSerializer I don't see how I can hook in the deserialization process and set the content for Windows.

I was hoping at some point I would be able to write something along the lines of

window.Content = PartFactory.Create(partKey);

where the window and the partKey come from your deserialization process.


Thanks
Craig.

[Modified at 10/28/2009 01:01 PM]

Comments (1)

Posted 10 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Craig,

Our serializer for Docking uses the same extensibility as the NavigationBar serializer. Check out the NavigationBar QuickStart "NavigationBarLayout" and look at its MainControl. That shows how you can attach to the serializer's ObjectSerializedHandler method to save custom data. Then likewise you can do a similar thing to restore your saved data later.

Hope that helps.


Actipro Software Support

The latest build of this product (v2019.1 build 0683) 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.