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

changing tileElement's color in runtime

2 Answers 97 Views
Panorama
This is a migrated thread and some comments may be shown as answers.
OD
Top achievements
Rank 1
OD asked on 21 Feb 2017, 10:44 AM

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 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 21 Feb 2017, 11:38 AM
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.
0
OD
Top achievements
Rank 1
answered on 22 Feb 2017, 07:48 AM

It worked out fine. Thank you

Tags
Panorama
Asked by
OD
Top achievements
Rank 1
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
OD
Top achievements
Rank 1
Share this question
or