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

Theme does not apply properly to RadSpinEditor

2 Answers 25 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 17 Nov 2009, 05:50 PM
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 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 20 Nov 2009, 12:35 PM
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.
0
Stefan
Telerik team
answered on 17 Mar 2011, 03:49 PM
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

 

Tags
Themes and Visual Style Builder
Asked by
Tim
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Stefan
Telerik team
Share this question
or