<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					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"
    xmlns:telerikQuickStart="clr-namespace:Telerik.Windows.Controls.QuickStart;assembly=Telerik.Windows.Controls"
	xmlns:filteringEditors="clr-namespace:Telerik.Windows.Controls.Filtering.Editors;assembly=Telerik.Windows.Controls"
    
 >

    <SolidColorBrush x:Key="ControlBackground" Color="#FF3D3D3D" />
<SolidColorBrush x:Key="ControlForeground_Normal" Color="#FFDDDDDD" />
<SolidColorBrush x:Key="ControlOuterBorder" Color="#FF595959" />
<telerik:Expression_DarkTheme x:Key="Theme" />
<CornerRadius x:Key="ControlSubItem_OuterCornerRadius">0</CornerRadius>
<SolidColorBrush x:Key="ControlSubItem_Background_MouseOver" Color="#FF878787" />
<SolidColorBrush x:Key="ControlSubItem_Background_Selected" Color="#FFCDCDCD" />
<SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FF789FC3" />

    
	<!-- style for ListBox -->
	<Style x:Key="{telerik:ThemeResourceKey ThemeType=
		telerik:ExpressionDarkTheme , 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="0" />
        
		<Setter Property="ScrollViewer.CanContentScroll" Value="True" />
		<Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
		
		
		<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=
		telerik:ExpressionDarkTheme , ElementType=ListBoxItem}"
		 TargetType="ListBoxItem">
		<Setter Property="Padding" Value="3" />
        <Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Top" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="BorderThickness" Value="1" />
        <Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ListBoxItem">
					<Grid>
						
						<!-- normal-->
                        <Border CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}"
								Margin="1,0" BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}"
								Background="{TemplateBinding Background}" />

						<!-- Mouseover -->
                        <Border x:Name="MouseOverState" Opacity="0" Margin="1,0" 
								CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}"
                                Background="{StaticResource ControlSubItem_Background_MouseOver}" />

                        <!-- Selected -->
                        <Border x:Name="SelectedState" Opacity="0" Margin="1,0"
								CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}"
                                Background="{StaticResource ControlSubItem_Background_Selected}" />
                        
                        <ContentControl x:Name="contentPresenter" Margin="{TemplateBinding Padding}" 
                                        Foreground="{TemplateBinding Foreground}"
                                        ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}"
                                        HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" 
                                        VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
                       
                        <!-- Focus -->
                        <Border x:Name="FocusState" Opacity="0" Margin="1,0" BorderThickness="1" 
								CornerRadius="{StaticResource ControlSubItem_OuterCornerRadius}"
                                BorderBrush="{StaticResource ControlOuterBorder_Focused}" />
						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsMouseOver" Value="true">
                            <Setter Property="Opacity" TargetName="MouseOverState" 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>