<ResourceDictionary
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
		xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls">

    <telerik:Expression_DarkTheme x:Key="Theme" />

	<SolidColorBrush x:Key="TextBoxSelectionBackground" Color="#FF2D6891" />

	<ControlTemplate x:Key="PickerTextBoxControlTemplate" TargetType="TextBox">
		<Grid x:Name="RootElement">
			<VisualStateManager.VisualStateGroups>
				<VisualStateGroup x:Name="CommonStates">
					<VisualState x:Name="Normal" />
					<VisualState x:Name="MouseOver" />
					<VisualState x:Name="Disabled">
						<Storyboard>
							<DoubleAnimation Duration="0" To="0.27" Storyboard.TargetName="ContentElement" Storyboard.TargetProperty="Opacity" />
						</Storyboard>
					</VisualState>
					<VisualState x:Name="ReadOnly" />
				</VisualStateGroup>
				<VisualStateGroup x:Name="FocusStates">
					<VisualState x:Name="Focused" />
					<VisualState x:Name="Unfocused" />
				</VisualStateGroup>
			</VisualStateManager.VisualStateGroups>
			<Border x:Name="Border" Cursor="IBeam" Background="Transparent" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1">
				<Grid>
					<ScrollViewer x:Name="ContentElement" Foreground="Orange" Padding="{TemplateBinding Padding}" BorderBrush="Transparent" BorderThickness="0" IsTabStop="False" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" telerik:StyleManager.Theme="{StaticResource Theme}" />
				</Grid>
			</Border>                
		</Grid>
	</ControlTemplate>
					
        <!-- style for TextBox -->
	<Style TargetType="telerik:PickerTextBox">
		<Setter Property="AcceptsReturn" Value="False" />
		<Setter Property="BorderThickness" Value="0" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderBrush" Value="Transparent" />
		<Setter Property="SelectionBackground" Value="{StaticResource TextBoxSelectionBackground}" />
		<Setter Property="Template" Value="{StaticResource PickerTextBoxControlTemplate}" />
	</Style>
    
</ResourceDictionary>
