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. Image for the cookie policy date

Dockmanager switches docked controls with each other on save/load

I save out my dock manager using the following code:
private byte[] GetDockState()
{
MemoryStream ms = new MemoryStream();
AppStateSerializer appStateSer = new AppStateSerializer(SerializeMode.XMLFile, ms);
_dockMgr.SaveDockState(appStateSer);
appStateSer.PersistNow();
string stateStr = ms.ToString();
return ms.ToArray();
}

and load it back like this:
private void SetDockState(byte[] value)
{
_dockMgr.LoadDockState(new AppStateSerializer(
SerializeMode.XMLFile, new MemoryStream(value)));
}
However when I do, two of the controls are reversed. This happens every time, so if I save and load, they swap again. How can I fix this?

Thanks

1 Reply

MU Murugan Syncfusion Team October 11, 2006 04:17 PM UTC

Hi Daniel,

Since we have another forum on same isssue, Please follow the forum
Controls are reversed when saving/loading a dockManager

Thanks,
Murugan P.S

Loader.
Live Chat Icon For mobile
Up arrow icon