修改已知问题
This commit is contained in:
@@ -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="实验编号"
|
||||
|
||||
Reference in New Issue
Block a user