Syncfusion.Tools.Windows
Example 


A reference to the Syncfusion.Runtime.Serialization.AppStateSerializer instance.

SaveDockState(AppStateSerializer) Method

Saves the current dockstate information to the specified Syncfusion.Runtime.Serialization.AppStateSerializer.
Syntax
'Declaration
 
Public Overloads Overridable Sub SaveDockState( _
   ByVal serializer As AppStateSerializer _
) 
'Usage
 
Dim instance As DockingManager
Dim serializer As AppStateSerializer
 
instance.SaveDockState(serializer)
public virtual void SaveDockState( 
   AppStateSerializer serializer
)

Parameters

serializer
A reference to the Syncfusion.Runtime.Serialization.AppStateSerializer instance.
Remarks
Writes the docking windows information to the persistence medium. This method has been provided only to allow a higher degree of control over the serialization process. For normal state storage and retrieval it is advisable to use the SaveDockState and LoadDockState methods.
Example
//Saving DockState to IsolatedStorage
AppStateSErializer appstser=new AppStateSerializer(SerializeMode.IsolatedStorage, null);
dockingManager1.SaveDockState(appstser);
appstser.PersistNow();
//Saving DockState to xml file(DockState.xml located in Application folder)
AppStateSerializer appstser =new AppStateSerializer(SerializeMode.XMLFile, "DockState");
dockingManager1.SaveDockState(appstser);
appstser.PersistNow();
'Saving DockState to IsolatedStorage
Dim appstser As New AppStateSerializer(SerializeMode.IsolatedStorage, Nothing)
dockingManager1.SaveDockState(appstser)
appstser.PersistNow()
'Saving DockState to xml file(DockState.xml located in Application folder)
Dim appstser As New AppStateSerializer(SerializeMode.XMLFile, "DockState")
dockingManager1.SaveDockState(appstser)
appstser.PersistNow()
AssemblyVersion

Syncfusion.Tools.Windows: 17.4460.0.46

See Also