
Hi Actipro,
I am looking at an earlier thread on Windows Form at http://www.actiprosoftware.com/community/thread/206/outlining-persistence
Question #1: Is there is a way to persist the outlining state? Saving it out to an xml file or something and then reloading it back into the document.
I have seen a getter for the rootNode property but not a setter method. If I were to have a custom handling to persist these outlininig state, how do I set it back to the document? And, of course, it would be best if Actipro provides a way to persist and load these persistence.
The outlining manager sits under the Document. From the SDI Editor (Inline) sample, if we were to split the window and perform a toggling of outlining state on one of the split view, the toggling is propagated to all views backed by the document.. Visual Studio have one state per split window.
One way to fix is having two documents for the split windows, but it will be too costly with keeping them in sync. The ideal case would be to have the Document holds one outlining manager which would then to have a 1-n relationship with an outlining state per split windows.
Question #2: Is there a way to better structure the outlining manager with the document? Or, is there already something available to use?
Cheers,
Erwin Liong