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?
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
Your solution worked very well, thank you.