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

RadLabel Theming

2 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Kenneth Jackson
Top achievements
Rank 1
Kenneth Jackson asked on 05 Sep 2008, 03:26 PM
I have created a new theme and in that theme I want the RadLabel to default with a transparent background.
 
I assumed this was the backcolor of the Fillprimitive , but that has not worked.

I then went as far as to make the backcolor of all the primitives and even the rootelement itself transparent , but still when I apply the new theme the backcolor is always that of 'control'.

So my first question is , is this bugged or am I missing something and secondly which is in fact the correct property to set for this ? (ie: the backcolor belonging to which primitive?)

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 09 Sep 2008, 07:54 AM
Hi Kenneth Jackson,

RadLabel's BackColor property is an ambient property. This means that if not explicitly set for a control, the property will take its value from the parent container control. Therefore, if you want to create a theme with transparent background, the RadLabel's RootElement BackColor property should be set to Transparent.

As far as I can understand, you have already tried this approach. However, I also tested the case and it worked correctly on my side. I am attaching a sample theme to demonstrate this. Just drag and drop a RadLabel on the form and apply the theme to it. The background color should turn to transparent. If you continue experiencing any issues concerning this case, please open a new support ticket and send me a sample project and a sample theme, which I will analyze further.

I hope this helps. If you have additional questions, feel free to contact me.
 
Best wishes,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Kenneth Jackson
Top achievements
Rank 1
answered on 10 Sep 2008, 05:18 AM
Tried it again and it worked , I must have not saved my changes
properly before ? Not sure , but either way it's sorted.

Thank you.
Tags
General Discussions
Asked by
Kenneth Jackson
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Kenneth Jackson
Top achievements
Rank 1
Share this question
or