I have a docking system that has a few permanent and many dynamic possible panes or documentpanes. I set the serialization tags for the ones I want to be saved with the docking layout but I cannot seem to find a sure way to keep all other dynamic added panes from saving with the layout. Basically any items oftype radpane that do not have a serialization name I want to omit from the xml layout.
I have a routine that iterates the documenthost.items and removes any that are not names with one of the known pane names I want to keep. But I notice when debugging the items only contains ones with serialization tags, and I can see that the DocumentHost.Panes has many, these are the ones I do not want to keep...
(Called before saving docking layout)
(holderMain is documentHost, panesToKeep is array of panes by name we know we want to keep with the saved layout)
p = 0; p<=holderMain.Items.Count; p++)
RadPane pane = holderMain.Items[p]
But I still see in the saved xml that it contains various raddocumentpanes that have no serialization tags.