修改已知问题

This commit is contained in:
2025-05-27 08:56:01 +08:00
parent b6c10f5b6b
commit a5f6a79a34
6 changed files with 174 additions and 4 deletions

View File

@@ -105,10 +105,34 @@
Binding="{Binding Name}"
Header="名称"
IsReadOnly="{Binding Source={StaticResource Proxy}, Path=Data.IsComplete}" />
<DataGridTextColumn
<DataGridTemplateColumn Header="实验工况" IsReadOnly="{Binding Source={StaticResource Proxy}, Path=Data.IsComplete}">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<ComboBox
DisplayMemberPath="Text"
ItemsSource="{Binding Source={StaticResource Proxy}, Path=Data.WorkCondCbxItems}"
SelectedValue="{Binding WorkCond, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
SelectedValuePath="Key">
<ComboBox.Style>
<Style BasedOn="{StaticResource MaterialDesignComboBox}" TargetType="ComboBox">
<Style.Triggers>
<DataTrigger Binding="{Binding Source={StaticResource Proxy}, Path=Data.IsComplete}" Value="True">
<Setter Property="IsEnabled" Value="False" />
</DataTrigger>
</Style.Triggers>
</Style>
</ComboBox.Style>
</ComboBox>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<!--<DataGridTextColumn
Binding="{Binding WorkCond}"
Header="实验工况"
IsReadOnly="{Binding Source={StaticResource Proxy}, Path=Data.IsComplete}" />
IsReadOnly="{Binding Source={StaticResource Proxy}, Path=Data.IsComplete}" />-->
<DataGridTextColumn
Binding="{Binding ExpNo}"
Header="实验编号"