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
65
Alternating Row Backround With Setting Foreground Using Converter.
posted

I've Defined my style as follows.   I need to set the foreground based on a bound property and I'd like to have an alternating background.  However, when I do this, it seems as though my alternating rows blow away the foreground coloring that is set by the converter.

<Style TargetType="{x:Type igWPF:DataRecordCellArea}">
    <Setter Property="Foreground" Value="{Binding DataItem.InternalExternal, Converter={StaticResource InternalExtneralConverter}}" />

    <Setter Property="BackgroundAlternate" Value="AliceBlue" />
    <Setter Property="BorderAlternateBrush" Value="LightGoldenrodYellow" />
</Style>

Any idea how to retain both of these properties?