tags:

views:

60

answers:

0

Hello,

i have datagrid and i style cell in it like this

<Style x:Key="EditCellStyle" TargetType="{x:Type wpftk:DataGridCell}">
   <Style.Triggers>
        <!-- Highlight selected rows -->
        <Trigger Property="IsSelected" Value="True">
            <Setter Property="Background" Value="Lavender" />
            <Setter Property="BorderBrush" Value="Lavender" />
        </Trigger>
    </Style.Triggers>
</Style>

some of rows have different Foreground colors

What can i do to force not to change Foreground of selected row?

Thanks!