We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to serialize the dynamically added children in Docking Manager?

In Docking Manager, the children that are added during run time were not serialized automatically. It can be manually serialized and de-serialized as follows.

Serializing the children

In Window Closing event, Call SaveDockState() method to save the state of static children. Then create a list of string, add the header of all dynamic children and then write it to the xml file.

Deserializing the children

In DockingManager Loaded event, extract the list of headers from xml file. Create child element, set its header and add it to DockingManager. Then call LoadeDockState() method to load all the children.

Here is an example of serializing the children manually using XML Serializer:





C#: DockingManager_Serialization_C#

VB: DockingManager_Serialization_VB

Article ID: Published Date: Last Revised Date: Platform: Control:
4898 05/18/2015 08/16/2018 WPF DockingManager
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon