Hi
I am creating content panes dynamically. I save persist the layout in an xml file and reload the saved content panes during the session of application. However, when I close the application and load saved layout, it fails to load content panes, I was expecting to load all panes with user control's default values. Please see attachment, as you add new panes and save it to file after relaunching application it fails to show previously saved panes, xml file has these panes.
Hello Abs,
I recommend reviewing the following article to work around this behavior. You will need to handle the InitializePaneContent event to provide the missing content again.
http://ko.infragistics.com/help/wpf/xamdockmanager-load-an-end-users-docking-layout
private void xamDockManager1_InitializePaneContent(object sender, InitializePaneContentEventArgs e){ // TODO: Add content to the missing content pane using the e.NewPane object}
Let me know if you have any questions regarding this matter.
Whilst implementing this event, how should I decide whether to add this new ContentPane to DocumentContentHost or not ?
ok, I have reviewed the links provided in your last comment and managed to implement this functionality. I am attaching the same application as a sample for your review and for other users who may face the same situation.