Category / Section
How to save the DockState into an xml file when using PersistState property in WinForms Docking Manager?
1 min read
Save the dock state
The PersisState property of DockingManager will save the dock state information into the IsolatedStorage medium which is known as default persistence storage medium. The AppStateSerializer has to be used for storing it in some other location. Please refer the below code snippet which illustartes this:
C#
public form1() { AppStateSerializer.InitializeSingleton(SerializeMode.XMLFile,"Dock1"); }
VB
Private Sub New() AppStateSerializer.InitializeSingleton(SerializeMode.XMLFile,"Dock1") EndSub
Sample: http://help.syncfusion.com/support/samples/kb/Tools.Windows/TDPersistence/Persistence.zip
UG document link: https://help.syncfusion.com/windowsforms/dockingmanager/serialization#serialize-dock-state-as-xml