<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:vistaCopy="clr-namespace:VistaThemeCopy"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					
    
    
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
    xmlns:telerikPrimitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
    xmlns:dragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
    xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
    xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
	xmlns:telerikTransitions="clr-namespace:Telerik.Windows.Controls.TransitionEffects;assembly=Telerik.Windows.Controls"
    xmlns:telerikTransitonControl="clr-namespace:Telerik.Windows.Controls.TransitionControl;assembly=Telerik.Windows.Controls"
    
 >

    <SolidColorBrush x:Key="ControlBackground" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="ControlForeground_Normal" Color="#FF000000" />
<SolidColorBrush x:Key="ControlOuterBorder" Color="#FFB0B0B0" />
<vistaCopy:VistaThemeCopyTheme x:Key="Theme" />
<CornerRadius x:Key="ControlOuterBorder_CornerRadius">2</CornerRadius>
<SolidColorBrush x:Key="ControlOuterBorder_Highlighted" Color="#B299DEFD" />
<LinearGradientBrush x:Key="ControlBackground_Highlighted" EndPoint="0.5,1" StartPoint="0.5,0">
		<GradientStop Color="#FFF1F8FD" Offset="0"/>
		<GradientStop Color="#FFD5EFFC" Offset="1"/>
	</LinearGradientBrush>
<SolidColorBrush x:Key="ControlInnerBorder_Highlighted" Color="#FFE7F5FD" />
<CornerRadius x:Key="ControlInnerBorder_CornerRadius">1</CornerRadius>


    
	<!-- style for ListBox -->
	<Style x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , ElementType=ListBox}"
		 TargetType="ListBox">
		<Setter Property="Padding" Value="1" />
		<Setter Property="Background" Value="{StaticResource ControlBackground}" />
		<Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Top" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="BorderThickness" Value="1" />
		
		<Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder}" />

		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ListBox">
					<ScrollViewer x:Name="ScrollViewer" Margin="0"
							telerik:StyleManager.Theme="{StaticResource Theme}"
							Padding="{TemplateBinding Padding}"
							Background="{TemplateBinding Background}"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}">
						<ItemsPresenter />
					</ScrollViewer>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!-- style for ListBoxItem -->
	<Style x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , ElementType=ListBoxItem}"
		 TargetType="ListBoxItem">
		<Setter Property="Padding" Value="3" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Top" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="BorderThickness" Value="1" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ListBoxItem">
					<Grid>
						
						<!-- normal-->
						<Border CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
								Margin="1,0" BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}"
								Background="{TemplateBinding Background}" />

						<!-- Mouseover -->
						<Border x:Name="MouseOverRectangle" Opacity="0"
								CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
								Margin="1,0" BorderBrush="{StaticResource ControlOuterBorder_Highlighted}"
								BorderThickness="{TemplateBinding BorderThickness}">
							<Border Background="{StaticResource ControlBackground_Highlighted}"
									BorderBrush="{StaticResource ControlInnerBorder_Highlighted}"
									BorderThickness="1"
									CornerRadius="{StaticResource ControlInnerBorder_CornerRadius}" />
						</Border>

						<telerikChromes:ButtonChrome
								telerik:StyleManager.Theme="{StaticResource Theme}"
								RenderNormal="False" Margin="1,0"
								RenderSelected="{TemplateBinding IsSelected}"
								RenderEnabled="{TemplateBinding IsEnabled}"
								CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}" />

						<ContentPresenter x:Name="contentPresenter" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
							<Setter Property="Opacity" TargetName="MouseOverRectangle" Value="1" />
						</Trigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter Property="Opacity" TargetName="contentPresenter" Value="0.5" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	

</ResourceDictionary>