DockingPaneManager State |
Post Reply |
Author | ||
martin.kelley
Newbie Joined: 24 July 2009 Location: United Kingdom Status: Offline Points: 1 |
Post Options
Thanks(0)
Posted: 24 July 2009 at 5:37am |
|
Hi. I am using v13 ActiveX from c#
I am trying to save the layout of the Panes on my form and restore them when the form is next loaded
In my FormClosed event I have
DockingPaneGlobalSettings glob = new DockingPaneGlobalSettings();
PropExchange pEx=glob.CreatePropExchange();
DockingPaneLayout myLayout=DockingPaneManager.CreateLayout();
DockingPaneManager.GetLayout(myLayout);
pEx.CreateAsXML(false, "MaintenanceItem");
myLayout.DoPropExchange(pEx);
pEx.SaveToFile(@"c:\Test.xml");
In my FormLoad event (at the very end) I have
DockingPaneGlobalSettings globSettings=new DockingPaneGlobalSettings();
PropExchange pEx = globSettings.CreatePropExchange();
DockingPaneLayout myLayout=DockingPaneManager.CreateLayout();
pEx.CreateAsXML(true,"MaintenanceItem");
if(pEx.LoadFromFile(@"c:\Test.xml"))
{
myLayout.DoPropExchange(pEx);
DockingPaneManager.SetLayout(myLayout);
}
The file is saved and seems to relect the state of the panes. But the state of the panes is not restored by the code I have in FormLoad
What am I missing? The SaveStae and LoadState methods seem to have the same problem; a registry entry is made but
Loading it seems to have no effect on the Pane layout.
Thanks |
||
Kavian
Newbie Joined: 27 January 2012 Location: IRAN Status: Offline Points: 1 |
Post Options
Thanks(0)
|
|
|
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |