RadLabel Theming

3 posts, 1 answers
  1. Kenneth Jackson
    Kenneth Jackson avatar
    60 posts
    Member since:
    Dec 2007

    Posted 05 Sep 2008 Link to this post

    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. Answer
    Nikolay
    Admin
    Nikolay avatar
    1805 posts

    Posted 09 Sep 2008 Link to this post

    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.
  3. Kenneth Jackson
    Kenneth Jackson avatar
    60 posts
    Member since:
    Dec 2007

    Posted 10 Sep 2008 Link to this post

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