Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1715
Xam data grid cell fore ground color
posted

hi,

  i had set following styles in xamdatagrid resources 

   

<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="BorderThickness" Value="0,1,0,1"></Setter>
<Setter Property="BorderBrush" Value="LightGray"></Setter>
<Style.Triggers>
<Trigger Property="IsRecordSelected" Value="True">
<Setter Property="BorderBrush" Value="Transparent"></Setter>
<Setter Property="BorderThickness" Value="0,1,0,1"></Setter>
</Trigger>

</Style.Triggers>
</Style>

<Style TargetType="{x:Type igDP:DataRecordCellArea }">
<Setter Property="BackgroundActive">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
<GradientStop Color="Gray" Offset="0.569"/>
<GradientStop Color="#FF504E4C" Offset="0.138"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>
<Setter Property ="BackgroundHover" Value="Transparent"></Setter>
<Setter Property="BackgroundActive">
<Setter.Value>
<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
<GradientStop Color="Gray" Offset="0.569"/>
<GradientStop Color="#FF504E4C" Offset="0.138"/>
</LinearGradientBrush>
</Setter.Value>
</Setter>

<Setter Property="BorderBrush" Value="Transparent"></Setter>

</Style>

when i select one row, selected row changes its foreground as my requirement(dark gradient).the problem is i want to set cell text color to white when i select row.

Regards,

Jafar VM