I am trying to create a DependencyProperty to persist the layout of my docking panes. I am running into an issue when I float the docking pane, close the window and then call LoadLayout when opening the window again. I have narrowed the issue down to which event I catch to save the layout. If I catch the RadDocking unloaded event the xml produced in the save layout doesn't work like I would like it too. If I catch the closed event on the Window then life is good and the floating window restores correctly (because this is an attached property this is not a valid work around). The difference in the xml is the IsInOpenWindow attribute, when I save from the window closed this value is false and when I save from the RadDocking unloaded event the value is true. I understand why this occurs, the closed event occurs before the RadDocking unloaded event. My question is when is the best time(what is the best event to catch) to save the layout of the docking windows without requiring intervention from the user?
Thanks.
I am willing to provide code if that would help.