Examples of RadDocking with Prism, MVVM & Workspace Persistence

4 posts, 0 answers
  1. Andrew Thompson
    Andrew Thompson avatar
    29 posts
    Member since:
    Jan 2010

    Posted 18 May 2012 Link to this post

    Hi telerik support!

    It's been a year or two since I've used this forum. I am about to start a project where we have licenses to Telerik Radcontrols Silverlight and need to purchase licenses for Telerik Radcontrols WPF. This project requires that we build out a framework which provides the following and yes, like everyone, we are on an extremely tight timescale:

    • Shell application using Prism, Telerik Raddock for Silverlight
    • Each docking window to host a module type
    • Persistence of docking windows layout and their contained module types to XML
    • Must support (as best as possible) MVVM. 

    Do you have any canned examples that can help us? We're really under the hammer in terms of time so anything would be of great benefit. 

    Thank you, 
  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 22 May 2012 Link to this post

    Hi Andrew,

    I spend quite a bit of time in their demo code. I think you'll get a good head start on finding what you need. Below are links that will bring you right to the demos. All you need to do to see the code is toggle the view by using the tabs at the top right of the example window.

    When you toggle view to code, look over to the left hand side. The file explorer type window shows the files used for the example. Click on one to see the code for that file.

    Okay, first, I'd go here and see the "First Look" at the new RadDock (remember to toggle views before moving on to the next example)

    Then check out the persistence ability of RadDock using exportable xml here,

    and the best part... the example is already using MVVM :)

    I hope this gives you a running start =)
  3. Eric
    Eric avatar
    57 posts
    Member since:
    Aug 2012

    Posted 10 Jan 2014 Link to this post

    The save load layout example is not mvvm. The example uses code behind to call the SaveLayout and LoadLayout on the docking control and it does not use a view model. Where is an example of radDocking save and load layout using no code behind. ?
  4. Vladi
    Vladi avatar
    749 posts

    Posted 15 Jan 2014 Link to this post


    As we noticed that you have posted the same question in the thread with ID: 775361 and we have responded to you in that thread could we continue the discussion there.

    I will paste our response from that thread here too in order for it to be available to the community:

    In WPF any UI control cannot provide a built-in functionality that automatically notifies the ViewModel when one of its events are triggered without any interaction with those event. In order to achieve this behavior you could use any of the Event to Command approaches that could be found on the web. Recently we introduced EventToCommandBehavior that could be useful in this case. You could attached one command from your ViewModel to the Loaded event of the RadDocking and one to the Closing event of the MainWindow.

    We created a sample project of the described approach which can be found to my response.

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