Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
Loading and Saving Layouts
posted

Hi,

I have been looking at your  KB09844 article and accompanied source code for the past few days now trying to make sense of it all. All I want to do is, at runtime open a user control in the main form if it was opened when the application was last closed, using the loadFromXml method. Thats it. Is there not an easier way of doing this than having to implement the ControlledWorkItem, WorkItemController, Module, ModuleController, RootViewPresenter etc. classes??? I know that previously we were using DevExpress and it was as simple as saving the layout when exiting and all forms that were opened would be saved. Any help or examples would be appreciated. 

Thanks.  

Parents
No Data
Reply
  • 44743
    posted

    When loading a layout, the UltraDockManager requires that the controls that were docked when saving the layout are somewhere on the control the dock manager is hosted in. If any controls are not present, they will not be loaded. There is a good chance the docked controls will have state information, and the dock manager cannot store that info when saving the layout, so it cannot recreate these controls with their correct state automatically. You can also submit a feature request for an event that gets fired when loading a layout and a control to create a loaded pane cannot be found: http://devcenter.infragistics.com/Protected/RequestFeature.aspx. This will prevent the need from having the control on the form when the dock manager is loaded.

Children