Shared Styles between WPF and Silverlight Controls

2 posts, 0 answers
  1. J
    J avatar
    1 posts
    Member since:
    Oct 2012

    Posted 18 Oct 2012 Link to this post


    I am in the middle of a project where I am trying to create a set of styles that can be used for both Silverlight 5 and WPF 4.5 controls. I started with the RibbonView and only ran into a few issues so far. One of them was WPF not liking the telerik:primitives Popup, and the other had to do with WPF not liking telerik:ScrollViewerExtensions.EnableMouseWheel property. I changed the popup markup to <Popup> and it seems to run fine in both WPF and SIlverlight, and I also removed the enable mouse wheel property and I seem to still have mouse wheel scrolling support in silverlight.

    I am assuming those two items were necessary early on on Silverlight's life, but not needed anymore in Silverlight 5. Is this assumption correct? Is there any documentation on depreciated controls / properties in Teleriks Silverlight control suite? Has anyone else created a Telerik Theme that can be applied to both SL5 and WPF 4.5 projects and have the Telerik controls look and function the same across the two?

    Thanks in advance,
  2. Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 23 Oct 2012 Link to this post

    Hello Jim,


    Straight to your questions:

    1. The mentioned Popup is obsoleted and you are doing the right thing to replace it with the native Microsoft Popup control. As you marked it will run under both platforms - WPF / Silverlight.

    2. In our online documentation you may find a detailed description about Changes and Backward compatibility per control, please follow this link. 

    3.As per your questions about themes - we are constantly working on the improvement of our controls and
    our components share common code-base in order to work simultaneously under both WPF/SL. However their styles still use platform specific properties, which are needed to achieve the desired look and feel.  

    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top