I understand that the ToolWindowLayoutData property for the DockManager stores all the information about panels that are in the Docking control. We use the data inside it to retain the position of all the panels and restore it on application startup.
From what I can see in that data, the property "Key" for ToolWindow is what is used to match the panel. For us, we are setting the Key to be the form name.
My question is, if we would like to change the form name, is there any way the old ToolWindowLayoutData could identify the new panel name to be the same?
To give a better example, we are setting the ToolWindow.Key = "PanelUSER1". Now instead, we'd like to store the record ID instead of "USER1" i.e. ToolWindow.Key = "Panel101", so the username could be changed and the layout would not be impacted since it will be referencing the ID.
Thanks.
[Modified 3 years ago]