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
You can change the text color (and much more) of entire row on mouse hover. Use the following style.
<igDP:XamDataGrid.Resources>
<Style TargetType="{x:Type igDP:DataRecordCellArea}">
<Setter Property="ForegroundHoverStyle">
<Setter.Value>
<Style>
<Setter Property="TextBlock.FontFamily" Value="Arial" />
<Setter Property="TextBlock.FontSize" Value="15" />
<Setter Property="TextBlock.FontWeight" Value="Bold"/>
<Setter Property="TextBlock.Foreground" Value="Red"/>
</Style>
</Setter.Value>
</Setter>
</igDP:XamDataGrid.Resources>
Best Regards,
I have tried implementing this,and does kind of work, except the text color is not changed to Red but the font size and weight is updated. Is there something i am missing, here is my code:
<Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:igDP="http://infragistics.com/DataPresenter" Title="Window1" Height="336" Width="619"> <Grid> <igDP:XamDataGrid BindToSampleData="True"> <igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igDP:DataRecordCellArea}"> <Setter Property="ForegroundHoverStyle"> <Setter.Value> <Style> <Setter Property="TextBlock.FontFamily" Value="Arial" /> <Setter Property="TextBlock.FontSize" Value="15" /> <Setter Property="TextBlock.FontWeight" Value="Bold"/> <Setter Property="TextBlock.Foreground" Value="Red"/> </Style> </Setter.Value> </Setter> <Setter Property="BackgroundHover"> <Setter.Value> <LinearGradientBrush EndPoint="0,1" StartPoint="0,0"> <GradientStop Color="#FF2225FF" Offset="0"/> <GradientStop Color="#FFB9D8FF" Offset="1"/> </LinearGradientBrush> </Setter.Value> </Setter> <Setter Property="BorderHoverBrush" Value="#FF000000"/> </Style> </igDP:XamDataGrid.Resources> </igDP:XamDataGrid> </Grid></Window>