Hi Lev,
When dock state is written into a stream, the position of the stream will be at the end. When AppStateSerializer reads the position, being at
end, the docking state is not loaded. After writing the stream we have set the stream position to 0 to load the dock state correctly.
public void SetDockingState( string xmlDockingState )
{
byte [] bArray = new
UTF8Encoding(true).GetBytes(xmlDockingState);
MemoryStream stream = new MemoryStream();
stream.Write(bArray, 0, bArray.Length);
stream.Position = 0;
AppStateSerializer aser = new
AppStateSerializer(SerializeMode.XMLFmtStream, stream);
this.dockingManager1.LoadDockState(aser);
}
I have attached a sample.Please go through that and let me know if you need more assistance.
Thanks for your interest on Syncfusion products.
Regards,
Murugan PS
Docking_XML.zip