42 lines
2.1 KiB
XML
42 lines
2.1 KiB
XML
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
|
|
|
<Style TargetType="TextBox"
|
|
BasedOn="{StaticResource {x:Type TextBox}}">
|
|
<Setter Property="Padding"
|
|
Value="2" />
|
|
<Setter Property="BorderBrush"
|
|
Value="{StaticResource TextBoxBackgroundSelected}" />
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type TextBox}">
|
|
<Grid Background="{TemplateBinding Background}"
|
|
SnapsToDevicePixels="true">
|
|
<Border x:Name="Highlight"
|
|
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
|
|
BorderBrush="{TemplateBinding BorderBrush}"
|
|
BorderThickness="{TemplateBinding BorderThickness}"
|
|
Background="{TemplateBinding Background}" />
|
|
<ScrollViewer x:Name="PART_ContentHost"
|
|
Margin="1" />
|
|
</Grid>
|
|
<ControlTemplate.Triggers>
|
|
<Trigger Property="IsMouseOver"
|
|
Value="true">
|
|
<Setter Property="Background"
|
|
Value="{StaticResource TextBoxBackgroundSelected}" />
|
|
</Trigger>
|
|
<Trigger Property="IsFocused"
|
|
Value="true">
|
|
<Setter Property="Background"
|
|
Value="{StaticResource TextBoxBackgroundSelected}" />
|
|
<Setter Property="BorderBrush"
|
|
Value="{StaticResource HighlightBrush}" />
|
|
</Trigger>
|
|
</ControlTemplate.Triggers>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
|
|
</ResourceDictionary> |