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

LoadLayout ignore missing/additional panes

3 Answers 93 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 06 Aug 2014, 11:45 AM
Hello,
I have a RadDocking with dynamic panes. I simulate an ItemsSource using an attached property to create the panes on startup and during the application runtime.

When I load the layout, I want to restore the pane positions and visibility for all _existing_ panes, but do not want to change the panes collection. At the moment, LoadLayout() deletes all panes which were not existing when the Layout was saved, and creates empty panes for missing items.
Can I somehow avoid this behavior?

Alex

3 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 08 Aug 2014, 11:03 AM
Hi Alex,

Thank you for contacting us.

In our latest versions of RadDocking after the Q3 2013 SP release of Telerik UI for WPF the control now has a built-in PanesSource property in order to provide a better MVVM pattern integration. The PanesSource collection works with a DockingPanesFactory which is responsible for visualizing the bound objects from that collection in the context of the RadDocking control. More details about the PanesSource/DockingPanesFactory feature can be found in our online help. Additionally you can take a look at the SDK examples located in our GitHub repository. Those examples illustrate how this feature works together with the Save/LoadLayout functionality in simpler and complex scenarios: Our SDK repository can be downloaded as a zip file from here: https://github.com/telerik/xaml-sdk/archive/master.zip. Hope this is helpful.


Regards,
Vladi
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Alexander
Top achievements
Rank 1
answered on 08 Aug 2014, 02:50 PM
Thanks for your answer.
The new approach seems interesting. I will see if I can refactor our current solution (where I created my own ItemsSource + code to generate the panes) with your DockingPanesFactory when I find the time. At the moment I will be using my workaround to delete/readd the panes manually.

Alex
0
Vladi
Telerik team
answered on 11 Aug 2014, 11:01 AM
Hi Alex,

This feature has been implemented into the control as the demand for a MVVM friendly approach of using the RadDocking was one of the most voted feature requests. We hope that it provides an easy to understand and use functionality to the control which integrates seamlessly with the other built-in features.

Hope it is helpful.

Regards,
Vladi
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Docking
Asked by
Alexander
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Alexander
Top achievements
Rank 1
Share this question
or