Good morning!
Hopefully this is the right place to find some help ... I've the following problem and I'm looking for a solution or at least a hint in the right direction.
General information
Problem description
I've created a CAB/SCSF application using a Infragistics UltraDockWorkspace. During runtime the user can open/close different views attached to this UltraDockWorkspace which contain my business objects. When the user closes the application the Infragistics UltraDockWorkspace layout must be saved. When the user restarts the application I want the application to
First try - My method of resolution
(1) Closing the application and saving the settings
When my Shell application closes I'm catching the "Application closing event" using something like
> this.Shell.FormClosing +=new FormClosingEventHandler(Shell_FormClosing);
The Shell_FormClosing method broadcasts a "save your stuff"-event to all open views containing business data. Each view that receives this event saves it's business content to a separate XML file.
After the business objects are saved the UltraDockWorkspace settings (location and size of open windows etc.) are saved using the following command:
> _dockWorkspace.SaveAsXML(configFile);
(2) Loading the previous application settings
When the user starts the application again I want the following to happen:
This is the point where I'm stuck
After a good deal of thought
I know the following:
Here I can use the following code to reconstruct the size and position of the views:> _dockWorkspace.LoadFromXML(configFile);This works only when the corresponding views are opend already. Otherwise I get an assertion error.
Questions
That's a difficult point which raises some questions:
Any help appreciated!
thx, Mac
Did you ever find the answer to this?
I am interested too in this. Anyone found some answers?
Gianni