Hi,
We have save DockManager Layout in XML file. First Page Layout is saved in layout.xml file.
using (FileStream fs = new FileStream(Helper.UtilityFields.CountryLayOutPath, FileMode.OpenOrCreate, FileAccess.Write)) { this.demo1DockManager.SaveLayout(fs); }
I have saved Second page DockManager Layout in layout.xml file as well like:
using (FileStream fs = new FileStream(Helper.UtilityFields.CountryLayOutPath, FileMode.OpenOrCreate, FileAccess.Write)) { this.demo2DockManager.SaveLayout(fs); }
For second page only closing tag like </DockManager></splitPane> etc are saving in layout.xml file.
Due to this while reading of file giving error. Please let us aware how to save or load multiple page layout in one XML file.
Thanks
Hi Kanwar,
The XamDockManager only saves 1 layout to a file. It is not possible by default to have multiple dock managers stored within one file. I recommend that you combine the saved layouts into a single file so that they are listed one after the other in the XML file. Then before you load the layout, read the xml file and split it into separate sections. You can then provide each section to it's respective dock manager. I have attached an example to demonstrate what I mean.
Please let me know if you have any questions on this.