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

Use of Silverlight controls in WPF

5 Answers 136 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 09 Feb 2009, 07:28 PM
I couldn't see any procedure for using Silverlight controls in WPF, is this possible? 

If not, please could you indicate any plans for providing those controls that are in Silverlight but not in WPF - there shouldn't be a subset in WPF, the other way round would be understandable.  Why should my WPF app be poorer than a Silverlight one?

The logic for having the commonality is obvious from a code re-use perspective.

Thanks
John Baker

.Net 3.5sp1
Vista
Q3 2008 SP1 WPF & Silverlight control libraries.

5 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 10 Feb 2009, 09:27 AM
Hi John,

You cannot use Silverlight controls in a WPF application, because they reference different runtime assemblies. As we understand that most developers would need the same controls in both Silverlight and WPF, we decided to postpone the development of some controls for all platforms (ComboBox, Menu, Scheduler etc.) because we needed to focus on bigger and more frequently requested controls, such as the GridView and Charting. On the other hand, some of the standard WPF controls (Menu for example) have so many features and it is very hard to provide something in addition to them. 

Our long term goal is to provide the same controls in both suites, because we want to let the developers to use the same source code in both WPF and Silverlight as much as possible. Generally, the decision which control should be developed first for the "other" platform is made depending on the client feedback, so you could change the order by telling us which controls do you need the most.

All the best,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
John
Top achievements
Rank 1
answered on 10 Feb 2009, 11:23 AM
Thanks for the prompt reply Valeri.

I'm a little concerned about the "long term"!  My naive understanding is that code differences between the target environments would be quite small for you (I know it's never that simple).  And it makes a big difference in the amount of coding/testing WE have to do, and indeed whether we end up using a desired Telerik control at all for that project.

The most important Silverlight controls for us in WPF are Cube and Media Player.

Apart from the biggest thing for us missing from a common WPF/Silverlight environment - a rich text editor.

Are you planning some kind of Rich text editor that can run in both environments?  Something in between the complexity/weight/flexibility of FlowDocument (WPF) and the more or less useless TextBox.  Even something like the WinForms RTB.

John Baker
0
Valeri Hristov
Telerik team
answered on 10 Feb 2009, 04:10 PM
Hi John,

Regarding the Media Player and the Cube - I am afraid that those controls are with very low priority on our list. However, I could send you the source code of the Silverlight RadCube, that should work without modifications in WPF.

We are working on RadEditor for Silverlight - you could check the following blog post for more information:
http://blogs.telerik.com/blogs/09-02-10/Announcing_RadEditor_for_Silverlight_CTP.aspx

Greetings,
Valeri Hristov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
gmendez
Top achievements
Rank 1
answered on 13 Apr 2009, 03:33 PM
Hi Valeri,

I'm very intersted in having a "Cube" for WPF.
Could you send me that source code please?
Thanks in advance.

Best regards,

Gonzalo
0
Ivan
Telerik team
answered on 13 Apr 2009, 04:59 PM
Hi Gonzalo,

Indeed migrating the Silverlight code to WPF is a hard task but there is a solution - if you do not rely on a robust interoperability between the application and the control you can embed the chosen Silverlight control inside a WPF application - more information you can find in the WPF and RadUpload for Silverlight article.

Hope this information helps.

Regards,
Ivan
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
John
Top achievements
Rank 1
gmendez
Top achievements
Rank 1
Ivan
Telerik team
Share this question
or