LoadLayout ignore missing/additional panes

4 posts, 0 answers
  1. Alexander
    Alexander avatar
    77 posts
    Member since:
    Apr 2013

    Posted 06 Aug 2014 Link to this post

    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
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 08 Aug 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Alexander
    Alexander avatar
    77 posts
    Member since:
    Apr 2013

    Posted 08 Aug 2014 in reply to Vladi Link to this post

    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
  5. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 11 Aug 2014 Link to this post

    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.
     
Back to Top