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

CellStyleSelector Foreground IS NOT WORKING

1 Answer 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kumar
Top achievements
Rank 1
Kumar asked on 07 Nov 2014, 07:17 AM
For example given in URL:

http://www.telerik.com/help/silverlight/gridview-cell-style-selector.html

I am unable to change Foreground color; Background color is working but Foreground color is not.

<Style TargetType="telerik:GridViewCell" BasedOn="{StaticResource GridViewCellStyle}">
    <Setter Property="Foreground" Value="Red" />
</Style>

Please Help.

1 Answer, 1 is accepted

Sort by
0
Boris
Telerik team
answered on 07 Nov 2014, 02:56 PM
Hello Kumar,

I tried to reproduce the mentioned behavior, however I was unsuccessful.

I attached a sample project that demonstrates the approach from the article, the only difference is that I am setting the Foreground property instead of Background.

Please examine it and let us know how it goes.

Regards,
Boris
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
Kumar
Top achievements
Rank 1
Answers by
Boris
Telerik team
Share this question
or