CellStyleSelector Foreground IS NOT WORKING

2 posts, 0 answers
  1. Kumar
    Kumar avatar
    1 posts
    Member since:
    Sep 2014

    Posted 07 Nov 2014 Link to this post

    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.
  2. Boris
    Admin
    Boris avatar
    276 posts

    Posted 07 Nov 2014 Link to this post

    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.

     
  3. DevCraft banner
Back to Top