更新
This commit is contained in:
@@ -51,29 +51,50 @@
|
|||||||
</Button.Style>
|
</Button.Style>
|
||||||
</Button>
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
<TextBlock Text="{Binding Lang.Standard}" Margin="0,10,0,5" FontSize="13"/>
|
|
||||||
<ComboBox SelectedValue="{Binding Parameters.Standard, Mode=TwoWay}" SelectedValuePath="Content" Margin="0,0,0,15" Height="40" VerticalContentAlignment="Center" FontSize="13">
|
<!-- 水平测试速度 (只读,从寄存器读取) -->
|
||||||
<ComboBox.ItemContainerStyle>
|
<TextBlock Text="{Binding Lang.HorizontalTestSpeed}" Margin="0,10,0,5" FontSize="13" Foreground="{StaticResource GrayBrush}"/>
|
||||||
<Style TargetType="ComboBoxItem">
|
<TextBox Text="{Binding Parameters.HorizontalTestSpeed, StringFormat={}{0:F1} mm/min, Mode=OneWay}"
|
||||||
<Setter Property="HorizontalContentAlignment" Value="Left"/>
|
Margin="0,0,0,15"
|
||||||
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
IsReadOnly="True"
|
||||||
<Setter Property="Padding" Value="10,8"/>
|
Background="#F5F5F5"
|
||||||
<Setter Property="MinHeight" Value="40"/>
|
Height="40"
|
||||||
</Style>
|
VerticalContentAlignment="Center"
|
||||||
</ComboBox.ItemContainerStyle>
|
FontSize="13"
|
||||||
<ComboBoxItem Content="GB 10006"/>
|
BorderBrush="#E0E0E0"/>
|
||||||
<ComboBoxItem Content="ISO 8295"/>
|
|
||||||
<ComboBoxItem Content="ASTM D1894"/>
|
<!-- 水平测试位移 (只读,从寄存器读取) -->
|
||||||
<ComboBoxItem Content="GB/T 22895"/>
|
<TextBlock Text="{Binding Lang.HorizontalTestDisplacement}" Margin="0,10,0,5" FontSize="13" Foreground="{StaticResource GrayBrush}"/>
|
||||||
<ComboBoxItem Content="TAPPI T816"/>
|
<TextBox Text="{Binding Parameters.HorizontalTestDisplacement, StringFormat={}{0:F1} mm, Mode=OneWay}"
|
||||||
<ComboBoxItem Content="GB/T 2792"/>
|
Margin="0,0,0,15"
|
||||||
<ComboBoxItem Content="GB/T 17200"/>
|
IsReadOnly="True"
|
||||||
<ComboBoxItem Content="Custom"/>
|
Background="#F5F5F5"
|
||||||
</ComboBox>
|
Height="40"
|
||||||
<TextBlock Text="{Binding Lang.TestSpeed}" Margin="0,10,0,5" FontSize="13"/>
|
VerticalContentAlignment="Center"
|
||||||
<TextBox Text="{Binding Parameters.TestSpeed, StringFormat={}{0:F1} mm/min, Mode=OneWay}" Margin="0,0,0,15" IsReadOnly="True" Background="#F5F5F5" Height="40" VerticalContentAlignment="Center" FontSize="13"/>
|
FontSize="13"
|
||||||
<TextBlock Text="{Binding Lang.TestDuration}" Margin="0,10,0,5" FontSize="13"/>
|
BorderBrush="#E0E0E0"/>
|
||||||
<TextBox Text="{Binding Parameters.TestDuration, StringFormat={}{0:F1} s, Mode=OneWay}" Margin="0,0,0,15" IsReadOnly="True" Background="#F5F5F5" Height="40" VerticalContentAlignment="Center" FontSize="13"/>
|
|
||||||
|
<!-- 升降测试速度 (只读,从寄存器读取) -->
|
||||||
|
<TextBlock Text="{Binding Lang.VerticalTestSpeed}" Margin="0,10,0,5" FontSize="13" Foreground="{StaticResource GrayBrush}"/>
|
||||||
|
<TextBox Text="{Binding Parameters.VerticalTestSpeed, StringFormat={}{0:F1} mm/min, Mode=OneWay}"
|
||||||
|
Margin="0,0,0,15"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Background="#F5F5F5"
|
||||||
|
Height="40"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
FontSize="13"
|
||||||
|
BorderBrush="#E0E0E0"/>
|
||||||
|
|
||||||
|
<!-- 升降测试位移 (只读,从寄存器读取) -->
|
||||||
|
<TextBlock Text="{Binding Lang.VerticalTestDisplacement}" Margin="0,10,0,5" FontSize="13" Foreground="{StaticResource GrayBrush}"/>
|
||||||
|
<TextBox Text="{Binding Parameters.VerticalTestDisplacement, StringFormat={}{0:F1} mm, Mode=OneWay}"
|
||||||
|
Margin="0,0,0,15"
|
||||||
|
IsReadOnly="True"
|
||||||
|
Background="#F5F5F5"
|
||||||
|
Height="40"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
FontSize="13"
|
||||||
|
BorderBrush="#E0E0E0"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</Border>
|
</Border>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user