Hi,
I need to change the text color on hover for entire row; is it possible? I have tried different styles but couldn't get it working properly. it works seperately for each cell; means if I hover on a cell, the text changes color. But I want to change the color of text of entire row on mouse over in the same way as we hover and DataRecordCell area changes color of entire row.
If someone knows how can we do it, please let me know.
Thanks
Adeel
Cool this worked for me. Thanks SSLaks.
Add the following styles:
<Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="ForegroundHoverStyle" Value="{x:Null}" /> </Style>
<Style TargetType="igDP:CellValuePresenter"> <Setter Property="ForegroundHoverStyle" Value="{x:Null}" /> <Setter Property="ForegroundSelectedStyle" Value="{x:Null}" /> <Setter Property="ForegroundPrimaryStyle" Value="{x:Null}" /> <Setter Property="ForegroundFieldSelectedStyle" Value="{x:Null}" /> <Setter Property="ForegroundActiveStyle" Value="{x:Null}" /> <Style.Triggers> <Trigger Property="IsRecordSelected" Value="True"> <Setter Property="ForegroundStyle" Value="{x:Null}" /> </Trigger> <Trigger Property="IsMouseOverRecord" Value="True"> <Setter Property="ForegroundStyle" Value="{x:Null}" /> </Trigger> </Style.Triggers> </Style>
I Have been struggling wtih this issue as well. I just want the text color in all fields of the "Moused Over" row to remain what they were when the Mouse was not over. I have spent far to much time trying to accomplish this. Any help would be appreciated.
I got the opposite of this issue, the foreground of the entire row changes to black automatically when mouse is over that row. It's not my intention to have this behavior. Is it possible to get rid of it? Thanks!
Hello Adeel,
You can see the default styles of all the controls that we ship in the local directory "C:\Program Files\Infragistics\NetAdvantage for WPF 2008 Vol. 2\DefaultStyles" on your computer. You can start building your own custom style based on the defaults. The black color is showing because of some of the triggers in the template. To avoid this you have to re-template the CellValuePresenter.
Hope this helps.
Alex.