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

Save Docked state

Thread ID:





75962 Aug 18,2008 01:11 PM UTC Aug 19,2008 11:42 AM UTC WinForms 1
Tags: Tools
Abhijeet Kumar
Asked On August 18, 2008 01:11 PM UTC

I am using Syncfusion version with .Net 2.0. I have a Form which have three controls that have been docked using DockingManager, User is allowed to change the docking as per his convenience.

Now my requirement is that, user should be able to save the docked state of UI, and when next time he opens up the application i should be able to show the controls in docking state which user has saved.


Administrator [Syncfusion]
Replied On August 19, 2008 11:42 AM UTC

Hi Abhijeet,

Thank you for your interest in Syncfusion Products.

The docking windows framework has a fully built-in serialization feature that provides automatic serialization of the form's docking state. In addition to this automatic dock state persistence during application termination and start, multiple intermediate docking states can be saved or loaded anytime using the programmatic API. The serialization mechanism is implemented using the standardized Syncfusion.Windows.Forms.AppStateSerializer component that acts as a central coordinator of all the Essential Tools components and provides the option to read / write to different media such as the default Isolated Storage, XML file, XML stream, Binary file, Binary stream and the Windows Registry.

Please refer below code snippets:
// Load the Save state of the dock.
public void LoadDockState(string fileName, Control ctrl)
AppStateSerializer aser = new AppStateSerializer(SerializeMode.XMLFile, fileName);
dockingManager.LoadDockState(aser, ctrl);
// Save application current Docking State
public void SaveDockState(string fileName, Control ctrl)
AppStateSerializer aser;
aser = new AppStateSerializer(Syncfusion.Runtime.Serialization.SerializeMode.XMLFile, fileName);
dockingManager.SaveDockState(aser, ctrl);

Please refer the below link for more detail.

Please let me know if any concerns.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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