| | |
| | | <RowDefinition/> |
| | | </Grid.RowDefinitions> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition Width="1*"/> |
| | | <ColumnDefinition Width="2*"/> |
| | | <ColumnDefinition Width="Auto"/> |
| | | <ColumnDefinition Width="1.5*"/> |
| | | <ColumnDefinition Width="2*"/> |
| | | <ColumnDefinition Width="Auto"/> |
| | | <ColumnDefinition Width="1.5*"/> |
| | | <ColumnDefinition Width="Auto"/> |
| | | <ColumnDefinition Width="2*"/> |
| | | </Grid.ColumnDefinitions> |
| | | <Label Grid.Row="0" Grid.Column="0">温度</Label> |
| | | <Label Grid.Row="0" Grid.Column="1" Background="Yellow" Content="{Binding temperatureStr}"/> |
| | | <Label Grid.Row="0" Grid.Column="2">状态</Label> |
| | | <Label Grid.Row="0" Grid.Column="0" Content="{DynamicResource Tr.Temperature}"/> |
| | | <Label Grid.Row="0" Grid.Column="1" Background="{DynamicResource CellValue}" Content="{Binding temperatureStr}"/> |
| | | <Label Grid.Row="0" Grid.Column="2" Content="{DynamicResource Tr.Status}"/> |
| | | <Label Grid.Row="0" Grid.Column="3" Content="{Binding statusStr}"> |
| | | <Label.Style> |
| | | <Style TargetType="Label"> |
| | |
| | | <Setter Property="Background" Value="#1296db"/> |
| | | </DataTrigger> |
| | | <DataTrigger Binding="{Binding status}" Value="waiting"> |
| | | <Setter Property="Background" Value="#6e6e6e"/> |
| | | <Setter Property="Background" Value="#A5A5A5"/> |
| | | </DataTrigger> |
| | | <DataTrigger Binding="{Binding status}" Value="alert"> |
| | | <Setter Property="Background" Value="#e04733"/> |
| | |
| | | </Style> |
| | | </Label.Style> |
| | | </Label> |
| | | <Label Grid.Row="0" Grid.Column="4">老化数量</Label> |
| | | <Label Grid.Row="0" Grid.Column="5" Background="Yellow" Content="{Binding countStr}"/> |
| | | <Label Grid.Row="0" Grid.Column="4" Content="{DynamicResource Tr.Count}"/> |
| | | <Label Grid.Row="0" Grid.Column="5" Background="{DynamicResource CellValue}" Content="{Binding countStr}"/> |
| | | |
| | | <Label Grid.Row="1" Grid.Column="0">开始时间</Label> |
| | | <Label Grid.Row="1" Grid.Column="1" Background="Yellow" Content="{Binding startTimeStr}"/> |
| | | <Label Grid.Row="1" Grid.Column="2">已老化时间</Label> |
| | | <Label Grid.Row="1" Grid.Column="3" Background="Yellow" Content="{Binding consumeTimeStr}"/> |
| | | <Label Grid.Row="1" Grid.Column="4">预计结束时间</Label> |
| | | <Label Grid.Row="1" Grid.Column="5" Background="Yellow" Content="{Binding endTimeStr}"/> |
| | | <Label Grid.Row="1" Grid.Column="0" Content="{DynamicResource Tr.StartTime}"/> |
| | | <Label Grid.Row="1" Grid.Column="1" Background="{DynamicResource CellValue}" Content="{Binding startTimeStr}"/> |
| | | <Label Grid.Row="1" Grid.Column="2" Content="{DynamicResource Tr.ElapsedTime}"/> |
| | | <Label Grid.Row="1" Grid.Column="3" Background="{DynamicResource CellValue}" Content="{Binding consumeTimeStr}"/> |
| | | <Label Grid.Row="1" Grid.Column="4" Content="{DynamicResource Tr.EstimatedEndTime}"/> |
| | | <Label Grid.Row="1" Grid.Column="5" Background="{DynamicResource CellValue}" Content="{Binding endTimeStr}"/> |
| | | </Grid> |
| | | </UserControl> |