<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		            
                            xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                            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: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"
                            xmlns:telerikRating="clr-namespace:Telerik.Windows.Controls.Rating;assembly=Telerik.Windows.Controls.Input"


>

    <SolidColorBrush x:Key="ControlForeground_Normal" Color="#FF1E395B" />
<LinearGradientBrush x:Key="ControlOuterBorder_Normal" EndPoint="0.5,1" StartPoint="0.5,0">
            <GradientStop Color="#FFA9BFD6" />
            <GradientStop Color="#FFCDDAEA" Offset="1" />
        </LinearGradientBrush>
<SolidColorBrush x:Key="TextBoxBackground" Color="#FFFFFFFF" />
<CornerRadius x:Key="ControlOuterBorder_CornerRadius">2</CornerRadius>
<SolidColorBrush x:Key="ControlOuterBorder_Focused" Color="#FF6CAFFF" />
<SolidColorBrush x:Key="ControlOuterBorder_Disabled" Color="#FFD9D9D9" />
<SolidColorBrush x:Key="ControlOuterBorder_MouseOver" Color="#FFB8D6FB" />
<SolidColorBrush x:Key="ControlForeground_Disabled" Color="#FFA7A7A7" />

    

	<Style TargetType="telerikInput:RadMaskedTextBox"
		   
		x:Key="{telerik:ThemeResourceKey ThemeType=
		telerik:Windows7Theme , ElementType=telerikInput:RadMaskedTextBox}"
		 >
		<Setter Property="Mask" Value="aaaa"></Setter>
		<Setter Property="MaskType" Value="Standard" />
		<Setter Property="Foreground" Value="{StaticResource ControlForeground_Normal}" />
		<Setter Property="BorderBrush" Value="{StaticResource ControlOuterBorder_Normal}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="IsReadOnly" Value="False" />
		<Setter Property="Placeholder" Value="_" />
		<Setter Property="MinHeight" Value="22" />
		<Setter Property="Background" Value="{StaticResource TextBoxBackground}" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Padding" Value="2 0" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="telerikInput:RadMaskedTextBox">
					<Grid  SnapsToDevicePixels="True" >
						

						<Border BorderThickness="{TemplateBinding BorderThickness}"
								Background="{TemplateBinding Background}"
								CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
								BorderBrush="{TemplateBinding BorderBrush}" x:Name="InnerBorder">
							<Grid>
								<telerikMaskedTextBox:ExtendedTextBox x:Name="PART_ExtendedTextBox"
										TabIndex="{TemplateBinding TabIndex}" IsTabStop="True"
										Foreground="{TemplateBinding Foreground}"
										IsReadOnly="{TemplateBinding IsReadOnly}"
										Margin="{TemplateBinding Padding}"
										HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
										VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" />
								<Border x:Name="EmptyContentPresenter"
										IsHitTestVisible="False" Visibility="Collapsed">
									<ContentControl x:Name="ContentElement" 
													IsTabStop="False" FontStyle="Italic" 
													Foreground="{TemplateBinding Foreground}"
													Content="{TemplateBinding EmptyContent}"
													ContentTemplate="{TemplateBinding EmptyContentTemplate}"
													HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
													VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
													Margin="{TemplateBinding Padding}" />
								</Border>

								<!--Error Visual Element-->
								
							</Grid>
						</Border>
						
						<Border x:Name="FocusedVisual" Visibility="Collapsed" BorderThickness="1"
								CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
								BorderBrush="{StaticResource ControlOuterBorder_Focused}" />
						
						<Border x:Name="DisabledVisual" Visibility="Collapsed" BorderThickness="1"
								CornerRadius="{StaticResource ControlOuterBorder_CornerRadius}"
								BorderBrush="{StaticResource ControlOuterBorder_Disabled}" />
						


					</Grid>
					
					<ControlTemplate.Triggers>
						<Trigger Property="IsKeyboardFocusWithin" Value="True">
							<Setter TargetName="FocusedVisual" Property="Visibility"
									Value="Visible" />
						</Trigger>
						<Trigger Property="IsMouseOver" Value="True">
							<Setter TargetName="InnerBorder" Property="BorderBrush"
									Value="{StaticResource ControlOuterBorder_MouseOver}" />
						</Trigger>
						<MultiTrigger>
							<MultiTrigger.Conditions>
								<Condition Property="IsKeyboardFocusWithin" Value="False" />
								<Condition Property="IsEmpty" Value="True" />
							</MultiTrigger.Conditions>
							<Setter Property="Visibility" TargetName="EmptyContentPresenter"
									Value="Visible" />
						</MultiTrigger>
						<Trigger Property="IsEnabled" Value="False">
							<Setter Property="Visibility" TargetName="DisabledVisual"
									Value="Visible" />
							<Setter Property="Foreground" TargetName="ContentElement"
									Value="{StaticResource ControlForeground_Disabled}" />
							<Setter Property="Foreground" TargetName="PART_ExtendedTextBox"
									Value="{StaticResource ControlForeground_Disabled}" />
						</Trigger>
					</ControlTemplate.Triggers>
					
				</ControlTemplate>
			</Setter.Value>
		</Setter>

	</Style>
	

</ResourceDictionary>
