Use of Silverlight controls in WPF

6 posts, 0 answers
  1. Dame
    Dame avatar
    4 posts
    Member since:
    Nov 2008

    Posted 09 Feb 2009 Link to this post

    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.
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 10 Feb 2009 Link to this post

    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.
  3. Dame
    Dame avatar
    4 posts
    Member since:
    Nov 2008

    Posted 10 Feb 2009 Link to this post

    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
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 10 Feb 2009 Link to this post

    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.
  5. gmendez
    gmendez avatar
    82 posts
    Member since:
    Jun 2012

    Posted 13 Apr 2009 Link to this post

    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
  6. Ivan
    Admin
    Ivan avatar
    519 posts

    Posted 13 Apr 2009 Link to this post

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