<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="ControlsTheme/ControlWindows7.xaml" />
    </ResourceDictionary.MergedDictionaries>
    <Style TargetType="ListBox">
        <Setter Property="Background" Value="{DynamicResource DynamicAutoFilterBrush}" />
    </Style>
    <SolidColorBrush x:Key="DynamicSeperatorBrush" Color="#299DF8" />
    <SolidColorBrush x:Key="DynamicDefaultControlBorderBrush" Color="Black" />
    <SolidColorBrush x:Key="DynamicDefaultControlBackgroundBrush" Color="White" />
    <SolidColorBrush x:Key="DynamicDefaultControlForegroundBrush" Color="Black" />
    <SolidColorBrush x:Key="DynamicRowDragBorderBrush" Color="Black" />
    <LinearGradientBrush x:Key="DynamicRowDragBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="0.4" Color="#1594F8" />
        <GradientStop Offset="0.6" Color="#47BFF6" />
    </LinearGradientBrush>
    <SolidColorBrush x:Key="DynamicSortBrush" Color="White" />
    <SolidColorBrush x:Key="SortOrderForeGroundBrushBrush" Color="Navy" />
    <SolidColorBrush x:Key="DynamicHeaderBorderBrush" Color="#BEE8FC" />
    <SolidColorBrush x:Key="DynamicGridLineColorBrush" Color="#AEAEAE" />

    <Style TargetType="Button">
        <Setter Property="Background" Value="{DynamicResource DynamicAutoFilterBrush}" />
        <Setter Property="Foreground" Value="White" />
        <Style.Triggers>
            <Trigger Property="Button.IsEnabled" Value="False">
                <Setter Property="Foreground" Value="Black" />
                <Setter Property="Background" Value="{DynamicResource DynamicCurrentRowBackgroundBrush}" />
            </Trigger>
        </Style.Triggers>
    </Style>

    <SolidColorBrush x:Key="DynamicDragForegroundBrush" Color="Black" />

    <SolidColorBrush x:Key="AutoFilterBrush" Color="Wheat" />
    <SolidColorBrush x:Key="AutoFilterDarkBrush" Color="White" />

    <LinearGradientBrush x:Key="DynamicHeaderBackgroundBrush" StartPoint="0.5,0.0" EndPoint="0.5,1.0">
        <GradientStop Offset="0.4" Color="#1594F8" />
        <GradientStop Offset="0.6" Color="#47BFF6" />

    </LinearGradientBrush>

    <LinearGradientBrush x:Key="DynamicHeaderHighlightedBackgoundBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="0.4" Color="#3EBCF6" />
        <GradientStop Offset="0.6" Color="#9EDDFA" />

    </LinearGradientBrush>

    <LinearGradientBrush x:Key="DynamicHeaderPressedBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="0.5" Color="#2AADF3" />
        <GradientStop Offset="1" Color="#C2EBFD" />
    </LinearGradientBrush>


    <SolidColorBrush x:Key="DynamicAutoFilterBackGroundBrushBrush" Color="White" />

    <LinearGradientBrush x:Key="DynamicAutoFilterBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Offset="0" Color="#1684D6" />
        <GradientStop Offset="1" Color="#06397B" />
    </LinearGradientBrush>

    <SolidColorBrush x:Key="DynamicAutoFilterForegroundBrushBrush" Color="White" />

    <LinearGradientBrush x:Key="DynamicAlternateRowBackgroundBrush" StartPoint="0.5,0.0" EndPoint="0.5,1.0">
        <GradientStop Offset="0" Color="#D1ECFF" />
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="DynamicRowBackgroundBrush" StartPoint="0.5,0.0" EndPoint="0.5,1.0">
        <GradientStop Offset="0" Color="White" />
    </LinearGradientBrush>

    <LinearGradientBrush x:Key="DynamicCurrentRowBackgroundBrush" StartPoint="0.5,0.0" EndPoint="0.5,1.0">
        <GradientStop Offset="0.4" Color="#3EBCF6" />
        <GradientStop Offset="0.6" Color="#9EDDFA" />
    </LinearGradientBrush>

    <DataTemplate x:Key="SigmaContentTemplate">
        <Image
            Width="15"
            Height="12"
            RenderOptions.BitmapScalingMode="HighQuality"
            Source="../Images/greek_letter_sigma.gif" />
    </DataTemplate>

    <DataTemplate x:Key="EditingPen">
        <Image
            Width="12"
            Height="12"
            VerticalAlignment="Center"
            RenderOptions.BitmapScalingMode="HighQuality"
            Source="../Images/pen_write.png"
            Visibility="Visible" />
    </DataTemplate>

</ResourceDictionary>