changing tileElement's color in runtime

3 posts, 0 answers
  1. QuizzBox
    QuizzBox avatar
    66 posts
    Member since:
    Jan 2011

    Posted 21 Feb Link to this post

    Hi,

    i would like to change the color of my tileElement in runtime (property defined by user), but i would like to keep the effect of the tileElement (another color define  for mouseover)

    Is there any way ?

  2. Dess
    Admin
    Dess avatar
    2110 posts

    Posted 21 Feb Link to this post

    Hello Jean-Marc,

    Thank you for writing.  

    In order to specify a back color for the RadTileElement only for the normal state and don't affect the mouse over or other states, you can use the API for overriding theme settings at run time: http://docs.telerik.com/devtools/winforms/telerik-presentation-framework/override-theme-settings-at-run-time

    Here is a sample code snippet which will change the back color of the tile but keep its hover state:
    this.radTileElement1.SetThemeValueOverride(LightVisualElement.BackColorProperty, Color.Red, "");

    I hope this information helps. Should you have further questions I would be glad to help.

    Regards,
    Dess
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. QuizzBox
    QuizzBox avatar
    66 posts
    Member since:
    Jan 2011

    Posted 22 Feb in reply to Dess Link to this post

    It worked out fine. Thank you

Back to Top