优化设置界面Tcp显示
This commit is contained in:
@@ -310,20 +310,20 @@
|
||||
<ComboBox materialDesign:HintAssist.Hint="" Grid.Row="0" Grid.Column="1"
|
||||
Margin="0,4"
|
||||
ItemsSource="{Binding ConnectionTypes}"
|
||||
SelectedItem="{Binding SelectedDevice.ConnectionType}"/>
|
||||
SelectedItem="{Binding SelectedDevice.ConnectionType,Mode=TwoWay}"/>
|
||||
<Button Grid.Row="0" Grid.Column="2"
|
||||
Content="配置..."
|
||||
Margin="8,4,0,4" Padding="14,2"
|
||||
Command="{Binding OpenConnectionConfigCommand}"/>
|
||||
|
||||
<!-- TCP 参数预览 -->
|
||||
<!-- Tcp 参数预览 -->
|
||||
<StackPanel Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2"
|
||||
Margin="0,4,0,0" Orientation="Horizontal">
|
||||
<StackPanel.Style>
|
||||
<Style TargetType="StackPanel">
|
||||
<Setter Property="Visibility" Value="Collapsed"/>
|
||||
<Style.Triggers>
|
||||
<DataTrigger Binding="{Binding SelectedDevice.ConnectionType}" Value="TCP">
|
||||
<DataTrigger Binding="{Binding SelectedDevice.ConnectionType}" Value="Tcp">
|
||||
<Setter Property="Visibility" Value="Visible"/>
|
||||
</DataTrigger>
|
||||
</Style.Triggers>
|
||||
@@ -414,7 +414,6 @@
|
||||
VerticalAlignment="Center"
|
||||
FontWeight="Bold"/>
|
||||
<StackPanel Grid.Column="1" Orientation="Horizontal">
|
||||
<Button Content="重置" Command="{Binding ResetCommand}" Padding="12,4"/>
|
||||
<Button Content="保存" Command="{Binding SaveCommand}" Padding="12,4" Margin="6,0,0,0"/>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
|
||||
Reference in New Issue
Block a user