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.
Whilst implementing this event, how should I decide whether to add this new ContentPane to DocumentContentHost or not ?
Hello Abs,
Thank you for following up and sharing your updated project. Let me know if there is anything else I can assist you with.
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.
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://es.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.
Thank you for contacting Infragistics. The LoadCustomizations method expects for the Panes to exist and rendered on-screen to work correctly. In otherwords all of the same UI controls and elements with the same name should be on-screen when saving and loading. Therefore this sample demonstrates an unsupported scenario.
Let me know if you have any questions.