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: November 16, 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?

Platform: WPF |
Control: DockingManager |
Published Date: May 18, 2015 |
Last Revised Date: August 16, 2018

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:

MainWindow.xaml


MainWindow.xaml.cs

 

Samples

C#: DockingManager_Serialization_C#

VB: DockingManager_Serialization_VB

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

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