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?

Parents
  • 2151
    Verified Answer
    Offline posted

    Hello James,

     

    Thank you for your post. I was looking at your issue and it seems you need to use the foreground styling properties in order to have full control over the foreground colorization when alternate row coloring is enabled. I am attaching a sample which demonstrates how to have custom record foreground color set which is obtained from a data record field.

     

    Please do not hesitate to let me know if you have any further questions on this matter.

     

    Sincerely,

    Radko Kolev

    Infragistics Inc.

    www.infragistics.com/support

    XDG_AlternateRowForeground.zip
Reply Children
No Data