This is a migrated thread and some comments may be shown as answers.

Saving Layout

1 Answer 93 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Justin
Top achievements
Rank 1
Justin asked on 05 Aug 2013, 06:53 PM

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.

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 08 Aug 2013, 11:26 AM
Hi,

We tried to recreate the explained scenario, but we were not able to reproduce the floating window behavior as described. However I have recorded and attached here video which demonstrates saving/loading a layout with/without floating windows. The video uses an example from our online XAML SDK repository which can be found on the following link:
https://github.com/telerik/xaml-sdk/tree/master/Docking/SaveLoadLayout

Could you please provide us with more detailed information about the DependencyProperty and the exact setup in a support ticket. Also if you can send us a sample project it will be really helpful.

Regards,
Kalin
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Docking
Asked by
Justin
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or