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.
Unfortunately, activation email could not send to your email. Please try again.

Save Docked state

Thread ID:

Created:

Updated:

Platform:

Replies:

75962 Aug 18,2008 09:11 AM Aug 19,2008 07:42 AM Windows Forms 1
loading
Tags: Tools
Abhijeet Kumar
Asked On August 18, 2008 09:11 AM

Hi,
I am using Syncfusion version 4.101.0.58 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.

Thanks,
Abhijeet.


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

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);
aser.PersistNow();
}

Please refer the below link for more detail.
http://www2.syncfusion.com/ug_63/toolswin/Persistence2.html

Please let me know if any concerns.

Regards,
Hema


CONFIRMATION

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.

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.

;