<Window x:Class="HideRecordSelector.MainWindow"
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="MainWindow" Height="350" Width="525">
<Grid>
<Grid.Resources>
<SolidColorBrush Color="YellowGreen" x:Key="CVPOverallForeground" />
<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="Foreground" Value="{StaticResource CVPOverallForeground}"/>
<Setter Property="ForegroundAlternateStyle">
<Setter.Value>
<Style>
<Setter Property="TextElement.Foreground" Value="{StaticResource CVPOverallForeground}" />
</Style>
</Setter.Value>
</Setter>
<Setter Property="ForegroundActiveStyle">
<Setter.Value>
<Style>
<Setter Property="TextElement.Foreground" Value="{StaticResource CVPOverallForeground}" />
</Style>
</Setter.Value>
</Setter>
<Setter Property="ForegroundHoverStyle">
<Setter.Value>
<Style>
<Setter Property="TextElement.Foreground" Value="{StaticResource CVPOverallForeground}" />
</Style>
</Setter.Value>
</Setter>
<Setter Property="ForegroundSelectedStyle">
<Setter.Value>
<Style>
<Setter Property="TextElement.Foreground" Value="{StaticResource CVPOverallForeground}" />
</Style>
</Setter.Value>
</Setter>
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=Record.IsSelected}" Value="True">
<Setter Property="ForegroundStyle">
<Setter.Value>
<Style>
<Setter Property="TextElement.Foreground" Value="{StaticResource CVPOverallForeground}" />
</Style>
</Setter.Value>
</Setter>
</DataTrigger>
<Trigger Property="IsMouseOverRecord" Value="True">
<Setter Property="ForegroundStyle">
<Setter.Value>
<Style>
<Setter Property="TextElement.Foreground" Value="{StaticResource CVPOverallForeground}" />
</Style>
</Setter.Value>
</Setter>
</Trigger>
</Style.Triggers>
</Style>
</Grid.Resources>
<igDP:XamDataGrid BindToSampleData="True" >
<igDP:XamDataGrid.FieldLayoutSettings>
<igDP:FieldLayoutSettings HighlightAlternateRecords="True"/>
</igDP:XamDataGrid.FieldLayoutSettings>
</igDP:XamDataGrid>
</Grid>
</Window>