Persistence layout of documents


https://www.nevron.com/Forum/Topic7857.aspx
Print Topic | Close Window

By Luis Miguel Perez Lopez - 11 Years Ago
I can save the persistence layout of any number of documents and panels with the following code:
_DockingFWState = New NDockingFrameworkState(DockMgr)
_DockingFWState.PersistDocuments = True
_DockingFWState.Save(XMLFileName)

However, when I try to load the persistence layout with the following code, only two panels are ever loaded onto the form:
_DockingFWState = New NDockingFrameworkState(DockMgr)
_DockingFWState.Load(XMLFileName)

What do I need to change to ensure that all panels are loaded when I load the XML file for persistent layout of Nevron panels and documents?
By Nevron Support - 11 Years Ago
Hello Luis,

Make sure you set unique Key and Text properties to each one.
Let us know if the problem persist.
By Luis Miguel Perez Lopez - 11 Years Ago
Now it works properly

Thanks