CAN修复
This commit is contained in:
@@ -122,6 +122,98 @@
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
<!-- ============ A2L 描述文件 ============ -->
|
||||
<GroupBox Header="A2L 描述文件(测量量 / 标定量)" Margin="0,0,0,8"
|
||||
materialDesign:ColorZoneAssist.Mode="PrimaryLight">
|
||||
<StackPanel Margin="4">
|
||||
<StackPanel Orientation="Horizontal" Margin="0,4">
|
||||
<TextBlock Text="A2L文件" Style="{StaticResource ParamLabel}" />
|
||||
<TextBox Style="{StaticResource NumInput}" Width="460"
|
||||
ToolTip="ECU 描述文件(.a2l)。加载后可从下方列表选择测量量/标定量,自动带入地址与长度"
|
||||
Text="{Binding A2lFilePath, UpdateSourceTrigger=PropertyChanged}" />
|
||||
<Button Content="浏览..." Command="{Binding BrowseA2lCommand}"
|
||||
Style="{StaticResource CmdBtn}"
|
||||
Background="#1565C0" Foreground="White"
|
||||
ToolTip="选择 A2L 文件并解析" />
|
||||
<Button Content="重新解析" Command="{Binding ReloadA2lCommand}"
|
||||
Style="{StaticResource CmdBtn}"
|
||||
ToolTip="按当前路径重新解析(A2L 被工具重新生成后使用)" />
|
||||
<TextBlock Text="{Binding A2lSummaryText}"
|
||||
VerticalAlignment="Center" Margin="12,0,0,0"
|
||||
FontSize="12" Foreground="#616161"
|
||||
TextTrimming="CharacterEllipsis" MaxWidth="360" />
|
||||
</StackPanel>
|
||||
|
||||
<Grid Margin="0,6,0,0">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="10" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<DockPanel Grid.Column="0">
|
||||
<TextBlock DockPanel.Dock="Top" Text="测量量 MEASUREMENT → DAQ 地址/长度"
|
||||
FontSize="12" FontWeight="SemiBold"
|
||||
Foreground="#1565C0" Margin="2,0,0,4" />
|
||||
<ListBox Height="180"
|
||||
ItemsSource="{Binding A2lMeasurements}"
|
||||
SelectedItem="{Binding SelectedMeasurement}"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid ToolTip="{Binding Detail}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding Name}" FontSize="12"
|
||||
TextTrimming="CharacterEllipsis" />
|
||||
<TextBlock Grid.Column="1" Text="{Binding AddressText}"
|
||||
FontFamily="Consolas" FontSize="11"
|
||||
Foreground="#616161" Margin="8,0,0,0" />
|
||||
<TextBlock Grid.Column="2" Text="{Binding SizeText}"
|
||||
FontSize="11" Foreground="#9E9E9E"
|
||||
Margin="8,0,0,0" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</DockPanel>
|
||||
|
||||
<DockPanel Grid.Column="2">
|
||||
<TextBlock DockPanel.Dock="Top" Text="标定量 CHARACTERISTIC → 内存读写"
|
||||
FontSize="12" FontWeight="SemiBold"
|
||||
Foreground="#1565C0" Margin="2,0,0,4" />
|
||||
<ListBox Height="180"
|
||||
ItemsSource="{Binding A2lCharacteristics}"
|
||||
SelectedItem="{Binding SelectedCharacteristic}"
|
||||
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
|
||||
<ListBox.ItemTemplate>
|
||||
<DataTemplate>
|
||||
<Grid ToolTip="{Binding Detail}">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
<ColumnDefinition Width="Auto" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock Text="{Binding Name}" FontSize="12"
|
||||
TextTrimming="CharacterEllipsis" />
|
||||
<TextBlock Grid.Column="1" Text="{Binding CharacteristicType}"
|
||||
FontSize="11" Foreground="#9E9E9E"
|
||||
Margin="8,0,0,0" />
|
||||
<TextBlock Grid.Column="2" Text="{Binding AddressText}"
|
||||
FontFamily="Consolas" FontSize="11"
|
||||
Foreground="#616161" Margin="8,0,0,0" />
|
||||
</Grid>
|
||||
</DataTemplate>
|
||||
</ListBox.ItemTemplate>
|
||||
</ListBox>
|
||||
</DockPanel>
|
||||
</Grid>
|
||||
</StackPanel>
|
||||
</GroupBox>
|
||||
|
||||
<!-- ============ XCP 连接配置 ============ -->
|
||||
<GroupBox Header="XCP 连接配置" Margin="0,0,0,8"
|
||||
materialDesign:ColorZoneAssist.Mode="PrimaryLight">
|
||||
|
||||
Reference in New Issue
Block a user