バージョン

CustomStyles.xaml

XAML の場合:

<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:igPrim="http://schemas.infragistics.com/xaml/primitives">
    <!-- Brushes -->
    <SolidColorBrush x:Name="AddNewRowBackgroundBrush" Color="#FFF9EDED" />
    <SolidColorBrush x:Name="AddNewRowBorderBrush" Color="#FFc62d36" />
    <SolidColorBrush x:Name="FilterRowBackgroundBrush" Color="#FFCEE8F3" />
    <SolidColorBrush x:Name="FilterRowBorderBrush" Color="#FF216e99" />
    <SolidColorBrush x:Name="RedSummaryBorderBrush" Color="#FFc62d36" />
    <SolidColorBrush x:Name="GreenSummaryBorderBrush" Color="#FF386a23" />
    <!-- AddNewRowCellControl styling -->
    <Style x:Key="addNewRowCellStyle" TargetType="igPrim:AddNewRowCellControl">
        <Setter Property="Background" Value="{StaticResource AddNewRowBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource AddNewRowBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
    </Style>
    <!-- FilterRowCellControl styling -->
    <Style x:Key="filterStyle" TargetType="igPrim:FilterRowCellControl">
        <Setter Property="Background" Value="{StaticResource FilterRowBackgroundBrush}"/>
        <Setter Property="BorderBrush" Value="{StaticResource FilterRowBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
    </Style>
    <!-- SummaryRowCellControl styling -->
    <Style x:Key="RedSummaryStyle"  TargetType="igPrim:SummaryRowCellControl">
        <Setter Property="BorderBrush" Value="{StaticResource RedSummaryBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="FontSize" Value="10"/>
    </Style>
    <Style x:Key="GreenSummaryStyle"  TargetType="igPrim:SummaryRowCellControl">
        <Setter Property="BorderBrush" Value="{StaticResource GreenSummaryBorderBrush}"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="FontWeight" Value="Bold"/>
        <Setter Property="FontSize" Value="10"/>
    </Style>
</ResourceDictionary>