| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| |
| |
| <Style TargetType="TextBox"> |
| <Style TargetType="TextBox"> |
| <Setter Property="KeyboardNavigation.TabNavigation" Value="None" /> |
| <Setter Property="KeyboardNavigation.TabNavigation" Value="None" /> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="FocusVisualStyle" Value="{x:Null}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Foreground" Value="{DynamicResource TextBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundBrush}" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="SnapsToDevicePixels" Value="True" /> |
| <Setter Property="Padding" Value="12,5,12,5" /> |
| <Setter Property="Padding" Value="12,5,12,5" /> |
| <Setter Property="HorizontalContentAlignment" Value="Left" /> |
| <Setter Property="HorizontalContentAlignment" Value="Left" /> |
| <Setter Property="VerticalContentAlignment" Value="Center" /> |
| <Setter Property="VerticalContentAlignment" Value="Center" /> |
| <Setter Property="FontSize" Value="{DynamicResource FontSize}" /> |
| <Setter Property="FontSize" Value="{DynamicResource FontSize}" /> |
| <Setter Property="FontFamily" Value="{DynamicResource FontTitilliumWeb}" /> |
| <Setter Property="FontFamily" Value="{DynamicResource FontTitilliumWeb}" /> |
| <Setter Property="Template"> |
| <Setter Property="Template"> |
| <Setter.Value> |
| <Setter.Value> |
| <ControlTemplate TargetType="TextBox"> |
| <ControlTemplate TargetType="TextBox"> |
| <Grid Background="{TemplateBinding Background}"> |
| <Grid Background="{TemplateBinding Background}"> |
| <ScrollViewer x:Name="PART_ContentHost" |
| <ScrollViewer x:Name="PART_ContentHost" |
| VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}" |
| VerticalScrollBarVisibility="{TemplateBinding VerticalScrollBarVisibility}" |
| HorizontalScrollBarVisibility="{TemplateBinding HorizontalScrollBarVisibility}"/> |
| HorizontalScrollBarVisibility="{TemplateBinding HorizontalScrollBarVisibility}"/> |
| |
| |
| <Border x:Name="BorderStandard" |
| <Border x:Name="BorderStandard" |
| BorderBrush="{DynamicResource SelectionLightBrush}" |
| BorderBrush="{DynamicResource SelectionLightBrush}" |
| BorderThickness="2" Margin="-2" /> |
| BorderThickness="2" Margin="-2" /> |
| |
| |
| <Border x:Name="BorderFocus" Margin="-3" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| <Border x:Name="BorderFocus" Margin="-3" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderBrush="{DynamicResource SelectionBrush}" |
| BorderThickness="3" Visibility="Hidden" /> |
| BorderThickness="3" Visibility="Hidden" /> |
| </Grid> |
| </Grid> |
| <ControlTemplate.Triggers> |
| <ControlTemplate.Triggers> |
. | |
| <Trigger Property="IsEnabled" Value="False"> |
| |
| <Setter Property="Opacity" Value="0.5" /> |
| |
| </Trigger> |
| <Trigger Property="IsFocused" Value="True"> |
| <Trigger Property="IsFocused" Value="True"> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| </Trigger> |
| </Trigger> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Trigger Property="IsMouseOver" Value="True"> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Background" Value="{DynamicResource ControlBackgroundDarkBrush}" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Visible" TargetName="BorderFocus" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| <Setter Property="Visibility" Value="Hidden" TargetName="BorderStandard" /> |
| </Trigger> |
| </Trigger> |
| </ControlTemplate.Triggers> |
| </ControlTemplate.Triggers> |
| </ControlTemplate> |
| </ControlTemplate> |
| </Setter.Value> |
| </Setter.Value> |
| </Setter> |
| </Setter> |
| </Style> |
| </Style> |
| </ResourceDictionary> |
| </ResourceDictionary> |