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

Examples of RadDocking with Prism, MVVM & Workspace Persistence

3 Answers 260 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Andrew Thompson
Top achievements
Rank 1
Andrew Thompson asked on 18 May 2012, 02:25 PM
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, 
Andrew

3 Answers, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 22 May 2012, 11:12 PM
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)
http://demos.telerik.com/silverlight/#Docking/FirstLook

Then check out the persistence ability of RadDock using exportable xml here,
http://demos.telerik.com/silverlight/#Docking/SaveLoadLayout

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

I hope this gives you a running start =)
Lancelot
0
Eric
Top achievements
Rank 1
answered on 10 Jan 2014, 04:53 PM
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. ?
0
Vladi
Telerik team
answered on 15 Jan 2014, 02:03 PM
Hi,

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.

Regards,
Vladi
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
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
Andrew Thompson
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Eric
Top achievements
Rank 1
Vladi
Telerik team
Share this question
or