Theme does not apply properly to RadSpinEditor

3 posts, 0 answers
  1. Tim
    Tim avatar
    6 posts
    Member since:
    Jul 2008

    Posted 17 Nov 2009 Link to this post

    Themes applied to RadSpinEditor do not seem to work (with one exception). The properties for the RootRadElement are applied, but any property of the RadSpinElement and its children do not apply.

    Also, any changes made to the RadSpinEditor in Visual Style Builder do not show in the preview (the RadTrackBar also has the same preview problem). 

    I can change the RadSpinEditor properties at design time, but that does not help because my application has multiple themes which are changed at runtime. The only solution I now have is to hardcode each property and apply manually when the theme changes.

    Are there any tricks to getting a theme applied to a RadSpinEditor?

    I'm using the latest internal Q3  build (2009.3.1111) on Windows Vista Premium - C# - Visual Studio 2008.

    Thanks for your help,
    Tim



  2. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 20 Nov 2009 Link to this post

    Hi Tim,

    Thank you for contacting us.

    I was not able to reproduce the issue using our predefined themes. There is an issue only with the Desert theme that will be addressed in Q3 2009 SP1. I am attaching a screenshot of the behavior on my side and a sample project with the correct Desert theme.

    If you concern your custom themes, currently, after you save your theme, you need to modify the stylesheet relations in the xml file. The stylesheet relations by default in the saved xml file are:
    <StylesheetRelations>
        <RadStylesheetRelation RegistrationType="ElementTypeControlType" ControlType="Telerik.WinControls.UI.RadSpinEditor" ElementType="Telerik.WinControls.RootRadElement" ControlName="" ElementName="" />
    </StylesheetRelations>

    However you should add this line:
    <RadStylesheetRelation RegistrationType="ElementTypeDefault" ControlType="" ElementType="Telerik.WinControls.UI.RadSpinElement" ControlName="" ElementName="" />

    As a result the relations should be:
    <StylesheetRelations>
        <RadStylesheetRelation RegistrationType="ElementTypeControlType" ControlType="Telerik.WinControls.UI.RadSpinEditor" ElementType="Telerik.WinControls.RootRadElement" ControlName="" ElementName="" />
        <RadStylesheetRelation RegistrationType="ElementTypeDefault" ControlType="" ElementType="Telerik.WinControls.UI.RadSpinElement" ControlName="" ElementName="" />
    </StylesheetRelations>

    This issue will be addressed in the new Visual Style Builder that we are currently developing. The preview of RadSpinEditor will be addressed in the new VSB as well.

    I hope this helps. If you have additional questions, feel free to contact me.

    Greetings,
    Nikolay
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Stefan
    Admin
    Stefan avatar
    2890 posts

    Posted 17 Mar 2011 Link to this post

    Hello Tim,

    I am glad to inform you that Q1 2011 is released and the VSB theme preview is greatly improved. Additionally, VSB has a functionality to start the newly introduced tool - ThemeViewer - which gives you the ability to preview the created theme of all RadControls for WinForms together. For more information refer to this blog post.

    Best wishes,

    Stefan
    the Telerik team

     

Back to Top