|
@@ -15,7 +15,11 @@
|
|
|
<ColumnDefinition Width="*" />
|
|
|
<ColumnDefinition Width="auto" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
- <Border BorderBrush="{StaticResource color.field.border.norm}" BorderThickness="1,1,0,1" CornerRadius="4,0,0,4" Background="{StaticResource color.field.bg.def}"></Border>
|
|
|
+ <Border
|
|
|
+ Background="{StaticResource color.field.bg.def}"
|
|
|
+ BorderBrush="{StaticResource color.field.border.norm}"
|
|
|
+ BorderThickness="1,1,0,1"
|
|
|
+ CornerRadius="4,0,0,4" />
|
|
|
<TextBox
|
|
|
Name="TextBox_Num"
|
|
|
MinWidth="80"
|
|
@@ -31,24 +35,20 @@
|
|
|
PreviewTextInput="CountTextBox_PreviewTextInput"
|
|
|
Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:NumericUpDown}, Path=Text}"
|
|
|
TextAlignment="Left"
|
|
|
- TextChanged="TextBox_Num_TextChanged">
|
|
|
- <!--<TextBox.Template>
|
|
|
- <ControlTemplate TargetType="{x:Type TextBox}">
|
|
|
- <Border BorderBrush="{StaticResource color.field.border.norm}" BorderThickness="1,1,0,1" CornerRadius="4,0,0,4" Background="{StaticResource color.field.bg.def}">
|
|
|
- <ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
- </Border>
|
|
|
- </ControlTemplate>
|
|
|
- </TextBox.Template>-->
|
|
|
- </TextBox>
|
|
|
+ TextChanged="TextBox_Num_TextChanged" />
|
|
|
<Grid Grid.Column="1" Width="16">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition />
|
|
|
<RowDefinition />
|
|
|
</Grid.RowDefinitions>
|
|
|
- <Border Grid.Row="0" BorderBrush="{StaticResource color.field.border.norm}" BorderThickness="1,1,1,0.5" CornerRadius="0,4,0,0" Background="{StaticResource color.field.bg.def}">
|
|
|
+ <Border
|
|
|
+ Grid.Row="0"
|
|
|
+ Background="{StaticResource color.field.bg.def}"
|
|
|
+ BorderBrush="{StaticResource color.field.border.norm}"
|
|
|
+ BorderThickness="1,1,1,0.5"
|
|
|
+ CornerRadius="0,4,0,0">
|
|
|
<Button
|
|
|
Name="Button_Add"
|
|
|
-
|
|
|
Background="Transparent"
|
|
|
BorderBrush="Transparent"
|
|
|
BorderThickness="0"
|
|
@@ -59,19 +59,16 @@
|
|
|
Fill="{StaticResource color.icon.arrow.gray.def}"
|
|
|
Stretch="Uniform"
|
|
|
Visibility="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:NumericUpDown}, Path=ShowBtn}" />
|
|
|
- <!--<Button.Template>
|
|
|
- <ControlTemplate TargetType="{x:Type Button}">
|
|
|
- <Border BorderBrush="{StaticResource color.field.border.norm}" BorderThickness="1,1,1,0.5" CornerRadius="0,4,0,0" Background="{StaticResource color.field.bg.def}">
|
|
|
- <ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
- </Border>
|
|
|
- </ControlTemplate>
|
|
|
- </Button.Template>-->
|
|
|
</Button>
|
|
|
</Border>
|
|
|
- <Border Grid.Row="1" BorderBrush="{StaticResource color.field.border.norm}" BorderThickness="1,0.5,1,1" CornerRadius="0,0,4,0" Background="{StaticResource color.field.bg.def}">
|
|
|
+ <Border
|
|
|
+ Grid.Row="1"
|
|
|
+ Background="{StaticResource color.field.bg.def}"
|
|
|
+ BorderBrush="{StaticResource color.field.border.norm}"
|
|
|
+ BorderThickness="1,0.5,1,1"
|
|
|
+ CornerRadius="0,0,4,0">
|
|
|
<Button
|
|
|
Name="Button_Sub"
|
|
|
-
|
|
|
Background="Transparent"
|
|
|
BorderThickness="00"
|
|
|
Click="Button_Sub_Click">
|
|
@@ -80,13 +77,6 @@
|
|
|
Fill="{StaticResource color.icon.arrow.gray.def}"
|
|
|
Stretch="Uniform"
|
|
|
Visibility="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=local:NumericUpDown}, Path=ShowBtn}" />
|
|
|
- <!--<Button.Template>
|
|
|
- <ControlTemplate TargetType="{x:Type Button}">
|
|
|
- <Border BorderBrush="{StaticResource color.field.border.norm}" BorderThickness="1,0.5,1,1" CornerRadius="0,0,4,0" Background="{StaticResource color.field.bg.def}">
|
|
|
- <ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
- </Border>
|
|
|
- </ControlTemplate>
|
|
|
- </Button.Template>-->
|
|
|
</Button>
|
|
|
</Border>
|
|
|
</Grid>
|