|
@@ -291,6 +291,41 @@
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
|
|
<Setter Property="Padding" Value="6 -1 6 -1"/>
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="TextBox">
|
|
|
+ <Border Background="{TemplateBinding Background}"
|
|
|
+ BorderBrush="{TemplateBinding BorderBrush}"
|
|
|
+ BorderThickness="{TemplateBinding BorderThickness}"
|
|
|
+ SnapsToDevicePixels="True">
|
|
|
+ <Grid Margin="{TemplateBinding Margin}">
|
|
|
+ <ScrollViewer x:Name="PART_ContentHost"
|
|
|
+ Focusable="False"
|
|
|
+ HorizontalScrollBarVisibility="Hidden"
|
|
|
+ VerticalScrollBarVisibility="Hidden"/>
|
|
|
+ <Label x:Name="WaterMarkerLabel"
|
|
|
+ VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
|
|
|
+ HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
|
|
|
+ Visibility="Collapsed"
|
|
|
+ Margin="7,-7,0,0"
|
|
|
+ Content="{TemplateBinding Tag}"
|
|
|
+ FontSize="25"
|
|
|
+ Foreground="#293745"/>
|
|
|
+ </Grid>
|
|
|
+ </Border>
|
|
|
+ <ControlTemplate.Triggers>
|
|
|
+ <MultiTrigger>
|
|
|
+ <MultiTrigger.Conditions>
|
|
|
+ <Condition Property="Text" Value=""/>
|
|
|
+ </MultiTrigger.Conditions>
|
|
|
+ <Setter Property="Visibility"
|
|
|
+ TargetName="WaterMarkerLabel"
|
|
|
+ Value="Visible"/>
|
|
|
+ </MultiTrigger>
|
|
|
+ </ControlTemplate.Triggers>
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
<Style.Resources>
|
|
|
<Style TargetType ="Border">
|
|
|
<Setter Property="CornerRadius" Value="10"/>
|