<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:sys="clr-namespace:System;assembly=mscorlib"
							xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"
							xmlns:calendar="clr-namespace:Telerik.Windows.Controls.Calendar;assembly=Telerik.Windows.Controls.Input"
							xmlns:theme="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero"
							xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
							xmlns:telerikChromes="clr-namespace:Telerik.Windows.Controls.Chromes;assembly=Telerik.Windows.Controls"
							xmlns:primitives="clr-namespace:Telerik.Windows.Controls.Primitives;assembly=Telerik.Windows.Controls"
							xmlns:telerikMaskedTextBox="clr-namespace:Telerik.Windows.Controls.MaskedTextBox;assembly=Telerik.Windows.Controls.Input"



	>

	<CornerRadius x:Key="SplitButton_SpanCornerRadius">2</CornerRadius>
<CornerRadius x:Key="SplitButton_RightPartCornerRadius">0 2 2 0</CornerRadius>
<CornerRadius x:Key="SplitButton_LeftPartCornerRadius">2 0 0 2</CornerRadius>
<SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FF3C7FB1" />
<SolidColorBrush x:Key="ControlInnerBorder_Focused" Color="#FF99DEFD" />
<CornerRadius x:Key="SplitButton_SpanInnerCornerRadius">1</CornerRadius>
<vistaCopy:VistaThemeCopyTheme x:Key="Theme" />
<sys:Boolean x:Key="ComboboxButtonNormalState">False</sys:Boolean>
<SolidColorBrush x:Key="ButtonIconForeground_Normal" Color="#FF282828" />
<SolidColorBrush x:Key="ButtonIconBackground_Normal" Color="Transparent" />
<SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FFA9A9A9" />
<SolidColorBrush x:Key="TextBlock_Foreground_Disabled" Color="#FF999999" />
<SolidColorBrush x:Key="ButtonIconForeground_Disabled" Color="#FF282828" />
<SolidColorBrush x:Key="ButtonIconBackground_Disabled" Color="Transparent" />
<SolidColorBrush x:Key="ControlOuterBorder_MouseOver" Color="#FF3C7FB1" />
<SolidColorBrush x:Key="ButtonIconForeground_MouseOver" Color="#FF282828" />
<SolidColorBrush x:Key="ButtonIconBackground_MouseOver" Color="Transparent" />
<SolidColorBrush x:Key="ControlOuterBorder_Pressed" Color="#FF2C628B" />
<SolidColorBrush x:Key="ButtonIconForeground_Pressed" Color="#FF282828" />
<SolidColorBrush x:Key="ButtonIconBackground_Pressed" Color="Transparent" />
<SolidColorBrush x:Key="PickerForeground_Normal" Color="#FF000000" />
<SolidColorBrush x:Key="PickerBackground_Normal" Color="#FFFFFFFF" />
<SolidColorBrush x:Key="ControlOuterBorder_Normal" Color="#FF898C95" />


	

	<Style x:Key="ComboBox_PopupRootStyle" TargetType="ContentControl">
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ContentControl">
					<Grid>
						
						<Border BorderThickness="{TemplateBinding BorderThickness}" 
								BorderBrush="{TemplateBinding BorderBrush}"
								Background="{TemplateBinding Background}"
								CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
								 >
							<ContentPresenter />
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	

	

	<Style x:Key="ComboBox_EditableToggleButtonChromeStyle" TargetType="telerikChromes:ButtonChrome"
			 >

		<Setter Property="CornerRadius" Value="{StaticResource SplitButton_RightPartCornerRadius}" />
		<Setter Property="RenderNormal" Value="False" />
	</Style>
	
	
	

	<Style x:Key="ComboBox_EditableIconStyle" TargetType="Control">
		<Setter Property="IsHitTestVisible" Value="False" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate>
					<Path Data="M0,0 L7,0 7,1 6,1 6,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 z" Width="7" Height="4" Fill="{TemplateBinding Foreground}" Margin="0 0 0 1" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Margin" Value="5 5 6 5" />
		<Setter Property="HorizontalAlignment" Value="Right" />
		<Setter Property="VerticalAlignment" Value="Center" />
		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		
	</Style>

	
	

	<Style x:Key="ComboBox_EditablePickerTextBoxStyle" TargetType="telerik:PickerTextBox"
			 >
		<Setter Property="Margin" Value="0" />
		<Setter Property="MinWidth" Value="0" />
		<Setter Property="BorderBrush" Value="{x:Null}" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="TextBox">
					<Grid x:Name="RootElement">

						<Border x:Name="Border" Cursor="IBeam"
								Background="{TemplateBinding Background}"
								BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="{TemplateBinding BorderThickness}"
								CornerRadius="{StaticResource SplitButton_LeftPartCornerRadius}"
								
								ClipToBounds="True"
								 >

							<ScrollViewer
								Padding="{TemplateBinding Padding}" BorderThickness="0"
								IsTabStop="False"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								
								
								Margin="-3"
								x:Name="PART_ContentHost"
								 />
							
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
			
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
	</Style>

	
	
	
	<ControlTemplate x:Key="EditableComboBox" TargetType="telerikInput:RadComboBox">

		<Grid x:Name="VisualRoot">
			
			
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" />
				<ColumnDefinition Width="Auto" />
			</Grid.ColumnDefinitions>
			
			<Border Grid.ColumnSpan="2" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" />

			<Border x:Name="Border" Grid.ColumnSpan="2" IsHitTestVisible="False" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" />
			
			<telerik:PickerTextBox x:Name="PART_EditableTextBox"
					Grid.Column="0"
					Style="{StaticResource ComboBox_EditablePickerTextBoxStyle}"
					BorderThickness="{TemplateBinding BorderThickness}"
					Padding="{TemplateBinding Padding}"
					Background="{TemplateBinding Background}"
					HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
					VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
					IsReadOnly="{TemplateBinding IsReadOnly}" />

			<Border x:Name="FocusVisual" Visibility="Collapsed" Grid.ColumnSpan="2" IsHitTestVisible="False" BorderBrush="{StaticResource ControlOuterBorder_Focused}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" >
				<Border BorderBrush="{StaticResource ControlInnerBorder_Focused}" CornerRadius="{StaticResource SplitButton_SpanInnerCornerRadius}" BorderThickness="{TemplateBinding BorderThickness}" />
			</Border>
			
			<telerik:RadToggleButton x:Name="PART_DropDownButton" Margin="0" Padding="0"
					Grid.Column="1" IsTabStop="False" ClickMode="Press">

				<telerik:RadToggleButton.Template>
					<ControlTemplate TargetType="telerik:RadToggleButton">
						<ContentPresenter />
					</ControlTemplate>
				</telerik:RadToggleButton.Template>
				
				<Grid>
					<!--Style="{StaticResource ComboBox_EditableToggleButtonChromeStyle}"-->
					<telerikChromes:ButtonChrome x:Name="ButtonChrome"
							telerik:StyleManager.Theme="{StaticResource Theme}"
							RenderNormal="{StaticResource ComboboxButtonNormalState}"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}"
							RenderEnabled="{TemplateBinding IsEnabled}"
							RenderPressed="{TemplateBinding IsDropDownOpen}"
							RenderMouseOver="{Binding IsMouseOver, ElementName=PART_DropDownButton}"
							CornerRadius="{StaticResource SplitButton_RightPartCornerRadius}"
							
							
							RenderActive="{TemplateBinding IsMouseOver}"
							RenderFocused="{TemplateBinding IsKeyboardFocusWithin}"
							 />

					<ContentControl x:Name="DropDownIcon"
							Grid.Column="1"
							Foreground="{StaticResource ButtonIconForeground_Normal}"
							Background="{StaticResource ButtonIconBackground_Normal}"
							Style="{StaticResource ComboBox_EditableIconStyle}" />
				</Grid>
			</telerik:RadToggleButton>
				
			<TextBlock Text="{TemplateBinding EmptyText}" x:Name="Watermark" Opacity=".5" IsHitTestVisible="False" 
					   VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0" Visibility="Collapsed" />
			

			<Popup x:Name="PART_Popup"
					
					AllowsTransparency="True"
					PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
					 >

				<ContentControl x:Name="PopupRoot" Style="{StaticResource ComboBox_PopupRootStyle}"
						MinWidth="{TemplateBinding MinDropDownWidth}"
						MaxHeight="{TemplateBinding MaxDropDownHeight}"
						Background="{TemplateBinding Background}"
						BorderBrush="{TemplateBinding BorderBrush}"
						BorderThickness="{TemplateBinding BorderThickness}">

					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>

						<telerik:RadButton x:Name="PART_ClearButton" Grid.Row="0"
								Margin="-1 -1 -1 0"
								Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
								Content="{TemplateBinding ClearSelectionButtonContent}"
								telerik:StyleManager.Theme="{StaticResource Theme}" />

						<ScrollViewer x:Name="PART_ScrollViewer" Grid.Row="1"
								Padding="1 1 1 0" BorderThickness="0"
								VerticalScrollBarVisibility="Auto"
								telerik:StyleManager.Theme="{StaticResource Theme}"
								
								
								CanContentScroll="True"
								 >

							<ItemsPresenter />
						</ScrollViewer>
					</Grid>
				</ContentControl>
			</Popup>

			
		</Grid>
		
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsEnabled" Value="False">
				<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Disabled}" />
				<Setter TargetName="PART_EditableTextBox" Property="Foreground" Value="{StaticResource TextBlock_Foreground_Disabled}" />
				<Setter TargetName="DropDownIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_Disabled}" />
				<Setter TargetName="DropDownIcon" Property="Background" Value="{StaticResource ButtonIconBackground_Disabled}" />
			</Trigger>
			<Trigger Property="IsWatermarkVisible" Value="True">
				<Setter TargetName="Watermark" Property="Visibility" Value="Visible" />
			</Trigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsEnabled" Value="True" />
					<Condition Property="IsMouseOver" Value="True" />
				</MultiTrigger.Conditions>
				<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ControlOuterBorder_MouseOver}" />
				<Setter TargetName="DropDownIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_MouseOver}" />
				<Setter TargetName="DropDownIcon" Property="Background" Value="{StaticResource ButtonIconBackground_MouseOver}" />
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsEnabled" Value="True" />
					<Condition Property="IsDropDownOpen" Value="True" />
				</MultiTrigger.Conditions>
				<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Pressed}" />
				<Setter TargetName="DropDownIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_Pressed}" />
				<Setter TargetName="DropDownIcon" Property="Background" Value="{StaticResource ButtonIconBackground_Pressed}" />
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsKeyboardFocusWithin" Value="True" />
					<Condition Property="IsDropDownOpen" Value="False" />
				</MultiTrigger.Conditions>
				<Setter TargetName="FocusVisual" Property="Visibility" Value="Visible" />
			</MultiTrigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	

	

	<Style x:Key="ComboBox_NonEditableIconStyle" TargetType="Control">
		<Setter Property="IsHitTestVisible" Value="False" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate>
					<Path Data="M0,0 L7,0 7,1 6,1 6,2 5,2 5,3 4,3 4,4 3,4 3,3 2,3 2,2 1,2 1,1 0,1 z" Width="7" Height="4" Fill="{TemplateBinding Foreground}" Margin="0 0 0 1" />
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Margin" Value="5 5 6 5" />
		<Setter Property="HorizontalAlignment" Value="Right" />
		<Setter Property="VerticalAlignment" Value="Center" />
		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		
	</Style>

	
	


	
	<ControlTemplate x:Key="NonEditableComboBox" TargetType="telerikInput:RadComboBox">
		
		<Grid x:Name="VisualRoot">
			
			
			
			<Border BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{StaticResource SplitButton_SpanCornerRadius}" />

			<telerik:RadToggleButton x:Name="PART_DropDownButton" IsTabStop="False" Margin="0" Padding="0" ClickMode="Press">
				
				<telerik:RadToggleButton.Template>
					<ControlTemplate TargetType="telerik:RadToggleButton">
						<ContentPresenter />
					</ControlTemplate>
				</telerik:RadToggleButton.Template>

				<Grid>
					<Grid.ColumnDefinitions>
						<ColumnDefinition Width="*" />
						<ColumnDefinition Width="Auto" />
					</Grid.ColumnDefinitions>
						
					<telerikChromes:ButtonChrome x:Name="ButtonChrome"
							Grid.ColumnSpan="2"
							telerik:StyleManager.Theme="{StaticResource Theme}"
							CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
							RenderNormal="{StaticResource ComboboxButtonNormalState}"
							BorderBrush="{TemplateBinding BorderBrush}"
							BorderThickness="{TemplateBinding BorderThickness}"
							RenderEnabled="{TemplateBinding IsEnabled}"
							RenderPressed="{TemplateBinding IsDropDownOpen}"
							RenderFocused="{TemplateBinding IsFocused}"
							
							RenderMouseOver="{TemplateBinding IsMouseOver}"
							 />

						<ContentControl x:Name="DropDownIcon" 
								Grid.Column="1" 
								Foreground="{StaticResource ButtonIconForeground_Normal}"
								Background="{StaticResource ButtonIconBackground_Normal}"
								Style="{StaticResource ComboBox_NonEditableIconStyle}" />

						<ContentPresenter x:Name="Content"
								Grid.Column="0"
								Margin="{TemplateBinding Padding}"
								IsHitTestVisible="False"
								Content="{TemplateBinding SelectionBoxItem}"
								ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}"
								HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
								VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
				</Grid>
			</telerik:RadToggleButton>

			

			<Popup x:Name="PART_Popup"
					
					AllowsTransparency="True"
					PopupAnimation="{DynamicResource {x:Static SystemParameters.ComboBoxPopupAnimationKey}}"
					 >

				<ContentControl x:Name="PopupRoot" Style="{StaticResource ComboBox_PopupRootStyle}"
						Background="{TemplateBinding Background}"
						BorderBrush="{TemplateBinding BorderBrush}"
						BorderThickness="{TemplateBinding BorderThickness}"
						MinWidth="{TemplateBinding MinDropDownWidth}"
						MaxHeight="{TemplateBinding MaxDropDownHeight}">

					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto" />
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>
						
						<telerik:RadButton
							x:Name="PART_ClearButton"
							Grid.Row="0"
							Margin="-1 -1 -1 0"
							Visibility="{TemplateBinding ClearSelectionButtonVisibility}"
							Content="{TemplateBinding ClearSelectionButtonContent}"
							telerik:StyleManager.Theme="{StaticResource Theme}" />

						<ScrollViewer
							x:Name="PART_ScrollViewer" Grid.Row="1" BorderThickness="0"
							VerticalScrollBarVisibility="Auto"
							Padding="1 1 1 0"
							telerik:StyleManager.Theme="{StaticResource Theme}"
							
							
							CanContentScroll="True"
							 >

							<ItemsPresenter />
						</ScrollViewer>
					</Grid>
				</ContentControl>
			</Popup>
		</Grid>
		
		
		<ControlTemplate.Triggers>
			<Trigger Property="IsEnabled" Value="False">
				<Setter TargetName="Content" Property="Opacity" Value="0.5" />
				<Setter TargetName="DropDownIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_Disabled}" />
				<Setter TargetName="DropDownIcon" Property="Background" Value="{StaticResource ButtonIconBackground_Disabled}" />
			</Trigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsEnabled" Value="True" />
					<Condition Property="IsMouseOver" Value="True" />
				</MultiTrigger.Conditions>
				<Setter TargetName="DropDownIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_MouseOver}" />
				<Setter TargetName="DropDownIcon" Property="Background" Value="{StaticResource ButtonIconBackground_MouseOver}" />
			</MultiTrigger>
			<MultiTrigger>
				<MultiTrigger.Conditions>
					<Condition Property="IsEnabled" Value="True" />
					<Condition Property="IsDropDownOpen" Value="True" />
				</MultiTrigger.Conditions>
				<Setter TargetName="DropDownIcon" Property="Foreground" Value="{StaticResource ButtonIconForeground_Pressed}" />
				<Setter TargetName="DropDownIcon" Property="Background" Value="{StaticResource ButtonIconBackground_Pressed}" />
			</MultiTrigger>
		</ControlTemplate.Triggers>
		
	</ControlTemplate>

	

	
	
	<!-- RadComboBox -->
	<Style TargetType="telerikInput:RadComboBox"
		
		x:Key="{telerik:ThemeResourceKey ThemeType=
		vistaCopy:VistaThemeCopyTheme , ElementType=telerikInput:RadComboBox}"
		 >

		<Setter Property="Template" Value="{StaticResource NonEditableComboBox}" />
		<Setter Property="EditableTemplate" Value="{StaticResource EditableComboBox}" />
		<Setter Property="NonEditableTemplate" Value="{StaticResource NonEditableComboBox}" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="Padding" Value="5 0" />

		<Setter Property="Foreground" Value="{StaticResource PickerForeground_Normal}" />
		<Setter Property="Background" Value="{StaticResource PickerBackground_Normal}" />
		<Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
		<Setter Property="BorderThickness" Value="1" />

		
		
		<Setter Property="SnapsToDevicePixels" Value="True" />
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		
		

	</Style>

	

	

	<!-- RadComboBoxItem -->
	<Style
		TargetType="telerikInput:RadComboBoxItem"
		
		x:Key="{telerik:ThemeResourceKey ThemeType=vistaCopy:VistaThemeCopyTheme, ElementType=telerikInput:RadComboBoxItem}"
		>

		<Setter Property="MinHeight" Value="18" />
		<Setter Property="Margin" Value="0 0 0 1" />
		<Setter Property="Padding" Value="3 2" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		
		<Setter Property="FocusVisualStyle" Value="{x:Null}" />
		
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikInput:RadComboBoxItem">
					<Grid Background="Transparent">
						
						
						<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
						
						<telerikChromes:ButtonChrome
								x:Name="ButtonChrome"
								RenderNormal="False"
								RenderEnabled="{TemplateBinding IsEnabled}" 
								CornerRadius="{StaticResource SplitButton_SpanCornerRadius}"
								telerik:StyleManager.Theme="{StaticResource Theme}" />
							
						<ContentPresenter x:Name="Content" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
						
					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsEnabled" Value="False">
							<Setter TargetName="Content" Property="Opacity" Value="0.33" />
						</Trigger>
						<Trigger Property="IsHighlighted" Value="True">
							<Setter TargetName="ButtonChrome" Property="RenderHighlighted" Value="True" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	

</ResourceDictionary>