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

     >
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    

    <ControlTemplate x:Key="GridViewExpandableRowTemplate" TargetType="grid:GridViewExpandableRow">
        
		<Grid x:Name="grid">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
				<ColumnDefinition Width="Auto" />
			</Grid.ColumnDefinitions>

            <Border x:Name="SelectionBackground" Grid.Column="2"
					MinHeight="{TemplateBinding MinHeight}" 
					Background="{TemplateBinding Background}" 
					BorderBrush="{TemplateBinding BorderBrush}" 
					BorderThickness="{TemplateBinding BorderThickness}"
					Margin="{TemplateBinding Margin}"
					Padding="{TemplateBinding Padding}" />

			<grid:IndicatorPresenter x:Name="PART_IndicatorPresenter"  Visibility="{TemplateBinding RowIndicatorVisibility}" Grid.Column="0"
												 Background="#FFDBDEE1" 
												 BorderBrush="{TemplateBinding BorderBrush}" 
												 BorderThickness="1,0,1,1">
				<Path x:Name="NavigatorIndicator" 
								  Fill="#FF000000" Stretch="Fill" Width="5" Height="8" Data="M254.5,183.75 L254.5,193.33333 260.75,188.16682 z"
								  Margin="7,0,0,0" Visibility="Collapsed"/>

			</grid:IndicatorPresenter>
			<grid:IndentPresenter x:Name="PART_IndentPresenter"  IndentLevel="{TemplateBinding IndentLevel}" Grid.Column="1" Background="{TemplateBinding Background}" />
			
            <grid:HierarchyChildPresenter x:Name="PART_HierarchyChildPresenter"
                                          
                                          Grid.Column="2" Foreground="{TemplateBinding Foreground}"/>

			
		
		</Grid>
        
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsSelected" Value="True">
				<Setter Property="Background" TargetName="SelectionBackground" Value="{StaticResource GridViewRowSelectedBackground}"/>
				<Setter Property="BorderBrush" TargetName="SelectionBackground" Value="{StaticResource GridViewRowSelectedBorderBrush}" />
			</Trigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsSelected" Value="False" />
					<Condition Property="IsMouseOver" Value="True" />
				</MultiTrigger.Conditions>
				<Setter Property="Background" TargetName="SelectionBackground" Value="{StaticResource GridViewRowHoveredBackground}" />
				<Setter Property="BorderBrush" TargetName="SelectionBackground" Value="{StaticResource GridViewRowSelectedBorderBrush}" />
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsSelected" Value="True" />
					<Condition Property="IsCurrent" Value="False" />
				</MultiTrigger.Conditions>
				<Setter Property="BorderBrush" TargetName="SelectionBackground" Value="{StaticResource GridViewRowSelectedBorderBrush}" />
			</MultiTrigger>
			<Trigger Property="IsCurrent" Value="True">
				<Setter TargetName="NavigatorIndicator" Property="Visibility" Value="Visible" />
			</Trigger>
		</ControlTemplate.Triggers>
		


    </ControlTemplate>

    <Style  
        
        x:Key="{telerik:ThemeResourceKey ThemeType=local:CustomTheme, ElementType=grid:GridViewExpandableRow}"
        
        TargetType="grid:GridViewExpandableRow">

        <Setter Property="Template" Value="{StaticResource GridViewExpandableRowTemplate}" />

		<Setter Property="Background" Value="#FFFFFFFF" />
		<Setter Property="BorderBrush" Value="{StaticResource GridViewIndicatorBorderBrush}" />
		<Setter Property="BorderThickness" 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="Margin" Value="0" />
		<Setter Property="Padding" Value="0" />
		<Setter Property="Foreground" Value="#FF000000" />
		
	</Style>
    
</ResourceDictionary>