|
|
|
@ -20,7 +20,7 @@ |
|
|
|
<Setter.Value> |
|
|
|
<ControlTemplate TargetType="Control"> |
|
|
|
<local:ButtonSpinner x:Name="Spinner" IsTabStop="False" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" |
|
|
|
AllowSpin="{Binding AllowSpin, RelativeSource={RelativeSource TemplatedParent}}" ShowButtonSpinner="{Binding ShowButtonSpinner, RelativeSource={RelativeSource TemplatedParent}}" > |
|
|
|
AllowSpin="{Binding AllowSpin, RelativeSource={RelativeSource TemplatedParent}}" ShowButtonSpinner="{Binding ShowButtonSpinner, RelativeSource={RelativeSource TemplatedParent}}"> |
|
|
|
<local:WatermarkTextBox x:Name="TextBox" BorderThickness="0" |
|
|
|
Background="{TemplateBinding Background}" |
|
|
|
FontFamily="{TemplateBinding FontFamily}" |
|
|
|
@ -32,6 +32,7 @@ |
|
|
|
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
|
|
|
IsReadOnly="{Binding IsEditable, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource InverseBoolConverter}}" |
|
|
|
MinWidth="20" AcceptsReturn="False" |
|
|
|
TextAlignment="{Binding TextAlignment, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
TextWrapping="NoWrap" |
|
|
|
TabIndex="{TemplateBinding TabIndex}" |
|
|
|
Text="{Binding Text, RelativeSource={RelativeSource TemplatedParent}}" |
|
|
|
@ -48,6 +49,7 @@ |
|
|
|
<!-- =============================================================================== --> |
|
|
|
|
|
|
|
<Style TargetType="{x:Type local:DecimalUpDown}" BasedOn="{StaticResource NumericUpDown}"> |
|
|
|
<Setter Property="TextAlignment" Value="Right" /> |
|
|
|
<Setter Property="WatermarkTemplate" Value="{StaticResource DefaultWatermarkTemplate}" /> |
|
|
|
</Style> |
|
|
|
|
|
|
|
@ -56,6 +58,7 @@ |
|
|
|
<!-- =============================================================================== --> |
|
|
|
|
|
|
|
<Style TargetType="{x:Type local:DoubleUpDown}" BasedOn="{StaticResource NumericUpDown}"> |
|
|
|
<Setter Property="TextAlignment" Value="Right" /> |
|
|
|
<Setter Property="WatermarkTemplate" Value="{StaticResource DefaultWatermarkTemplate}" /> |
|
|
|
</Style> |
|
|
|
|
|
|
|
@ -64,6 +67,7 @@ |
|
|
|
<!-- =============================================================================== --> |
|
|
|
|
|
|
|
<Style TargetType="{x:Type local:IntegerUpDown}" BasedOn="{StaticResource NumericUpDown}"> |
|
|
|
<Setter Property="TextAlignment" Value="Right" /> |
|
|
|
<Setter Property="WatermarkTemplate" Value="{StaticResource DefaultWatermarkTemplate}" /> |
|
|
|
</Style> |
|
|
|
|
|
|
|
|