<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
		xmlns:local="clr-namespace:CustomTheme;assembly=CustomTheme"
        xmlns:grid="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
    
    
    >
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources.xaml"/>
    </ResourceDictionary.MergedDictionaries>


    <ControlTemplate x:Key="GridViewNewRowTemplate" TargetType="grid:GridViewNewRow">
        <Border x:Name="GridViewNewRowBackground" 
				Background="{TemplateBinding Background}"
				BorderBrush="{TemplateBinding BorderBrush}" 
				BorderThickness="{TemplateBinding BorderThickness}">
            <Border x:Name="FallingBackground">
                <Border Name="SelectedRow">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>

                        <grid:IndicatorPresenter x:Name="PART_IndicatorPresenter" Visibility="{TemplateBinding RowIndicatorVisibility}" Grid.Column="0" 
                                                 Background="Transparent" >
                            <Path HorizontalAlignment="Center" VerticalAlignment="Center" Width="13" Height="12.761" Fill="#FF000000" Stretch="Fill" Data="M7.1814309,17.85 L20,17.85 20,19.632 4.0034657,19.632 z M3.1959208,13.714725 L3.7421504,15.971703 5.8852757,16.40302 0,19.599 2.9786448,13.932001 z M13.170675,3.7410002 L13.976983,5.6426744 15.859,6.4321728 7.0463305,15.238905 4.9116207,14.829532 4.3580957,12.551882 13.170675,3.7410002 z M16.909796,0 L19.160315,0.53160191 19.599998,2.688158 16.705103,5.5819998 14.873369,4.7454824 14.016999,2.8928623 16.909796,0 z"/>
                        </grid:IndicatorPresenter>
                        <grid:IndentPresenter IndentLevel="{TemplateBinding IndentLevel}" Grid.Column="1" />
                        <grid:DataCellsPresenter x:Name="PART_DataCellsPresenter"  Grid.Column="2" Height="Auto" 
												 MinHeight="{TemplateBinding MinHeight}"
												 Background="{TemplateBinding Background}"
												 FontSize="{TemplateBinding FontSize}"
												 FontStyle="{TemplateBinding FontStyle}"
												 FontWeight="{TemplateBinding FontWeight}"
												 Foreground="{TemplateBinding Foreground}"/>
                    </Grid>
                </Border>
                <Border.RenderTransform>
                    <ScaleTransform  ScaleY="1" x:Name="PART_InnerBorderTransform" />
                </Border.RenderTransform>
            </Border>

            <Border.LayoutTransform>
                <ScaleTransform  ScaleY="0" x:Name="PART_NewRowTransform" />
            </Border.LayoutTransform>


        </Border>

        <ControlTemplate.Triggers>
            <Trigger Property="IsSelected" Value="True">
                <Setter Property="Background" TargetName="SelectedRow" Value="{StaticResource GrdViewRowInnerBorderBackground_Selected}" />
            </Trigger>
            <MultiTrigger>
                <MultiTrigger.Conditions>
                    <Condition Property="IsSelected" Value="False" />
                    <Condition Property="IsMouseOver" Value="True" />
                </MultiTrigger.Conditions>
                <Setter Property="Background" TargetName="SelectedRow" Value="{StaticResource GrdViewRowInnerBorderBackground_Over}" />
            </MultiTrigger>
            <Trigger Property="Visibility" Value="Visible">
                <Trigger.EnterActions>
                    <BeginStoryboard Storyboard="{StaticResource GridViewNewRowAppear}"/>
                </Trigger.EnterActions>
            </Trigger>

        </ControlTemplate.Triggers>

    </ControlTemplate>

    <Style 
        
        x:Key="{telerik:ThemeResourceKey ThemeType=local:MyCustomTheme, ElementType=grid:GridViewNewRow}"
         
        TargetType="grid:GridViewNewRow">
        <Setter Property="Template" Value="{StaticResource GridViewNewRowTemplate}" />
        <Setter Property="Background" Value="{StaticResource GridViewRowBackground}" />
        <Setter Property="BorderBrush" Value="{StaticResource GridViewRowBorderBrush}" />
        <Setter Property="BorderThickness" Value="0,0,0,0" />
        <Setter Property="Margin" Value="0" />
        <Setter Property="Padding" Value="0" />
        <Setter Property="MinHeight" Value="24" />
        <Setter Property="FontSize" Value="11" />
        <Setter Property="FontFamily" Value="Segoe UI" />
        <Setter Property="FontWeight" Value="Normal" />
        <Setter Property="Foreground" Value="#FF000000" />
    </Style>
    
</ResourceDictionary>