-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Display unit in metrics history view.
- Loading branch information
Shuai Zhang
committed
Dec 20, 2019
1 parent
7d78ea6
commit d3c11e7
Showing
1 changed file
with
45 additions
and
45 deletions.
There are no files selected for viewing
90 changes: 45 additions & 45 deletions
90
...ermalResearchInstitute/GeothermalResearchInstitute.Wpf/Views/DeviceMetricHistoryView.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
<UserControl | ||
x:Class="GeothermalResearchInstitute.Wpf.Views.DeviceMetricHistoryView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:GeothermalResearchInstitute.Wpf.Views" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:prism="http://prismlibrary.com/" | ||
d:DesignHeight="360" | ||
d:DesignWidth="600" | ||
prism:ViewModelLocator.AutoWireViewModel="True" | ||
Loaded="DeviceMetricHistoryView_Loaded" | ||
mc:Ignorable="d"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="24*" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="*" /> | ||
<RowDefinition Height="16*" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<DataGrid | ||
x:Name="Scroll" | ||
Grid.Row="1" | ||
Grid.Column="1" | ||
AutoGenerateColumns="False" | ||
CanUserAddRows="False" | ||
IsReadOnly="True" | ||
ItemsSource="{Binding Metrics}" | ||
ScrollViewer.ScrollChanged="Scroll_ScrollChanged"> | ||
<DataGrid.Columns> | ||
<DataGridTextColumn Binding="{Binding CreateTime, Converter={local:TimestampConverter}, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" Header="时间" /> | ||
<DataGridTextColumn Binding="{Binding OutputWaterCelsiusDegree, StringFormat={}{0:#0.0}}" Header="出水温度" /> | ||
<DataGridTextColumn Binding="{Binding InputWaterCelsiusDegree, StringFormat={}{0:#0.0}}" Header="进水温度" /> | ||
<DataGridTextColumn Binding="{Binding HeaterOutputWaterCelsiusDegree, StringFormat={}{0:#0.0}}" Header="加热器出水温度" /> | ||
<DataGridTextColumn Binding="{Binding EnvironmentCelsiusDegree, StringFormat={}{0:#0.0}}" Header="环境温度" /> | ||
<DataGridTextColumn Binding="{Binding WaterPumpFlowRateCubicMeterPerHour, StringFormat={}{0:#0.0}}" Header="水泵流量" /> | ||
<DataGridTextColumn Binding="{Binding HeaterPowerKilowatt, StringFormat={}{0:#0.0}}" Header="加热功率" /> | ||
</DataGrid.Columns> | ||
</DataGrid> | ||
</Grid> | ||
</UserControl> | ||
<UserControl | ||
x:Class="GeothermalResearchInstitute.Wpf.Views.DeviceMetricHistoryView" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:GeothermalResearchInstitute.Wpf.Views" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:prism="http://prismlibrary.com/" | ||
d:DesignHeight="360" | ||
d:DesignWidth="600" | ||
prism:ViewModelLocator.AutoWireViewModel="True" | ||
Loaded="DeviceMetricHistoryView_Loaded" | ||
mc:Ignorable="d"> | ||
<Grid> | ||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition Width="*" /> | ||
<ColumnDefinition Width="24*" /> | ||
<ColumnDefinition Width="*" /> | ||
</Grid.ColumnDefinitions> | ||
<Grid.RowDefinitions> | ||
<RowDefinition Height="*" /> | ||
<RowDefinition Height="16*" /> | ||
<RowDefinition Height="*" /> | ||
</Grid.RowDefinitions> | ||
<DataGrid | ||
x:Name="Scroll" | ||
Grid.Row="1" | ||
Grid.Column="1" | ||
AutoGenerateColumns="False" | ||
CanUserAddRows="False" | ||
IsReadOnly="True" | ||
ItemsSource="{Binding Metrics}" | ||
ScrollViewer.ScrollChanged="Scroll_ScrollChanged"> | ||
<DataGrid.Columns> | ||
<DataGridTextColumn Binding="{Binding CreateTime, Converter={local:TimestampConverter}, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}" Header="时间" /> | ||
<DataGridTextColumn Binding="{Binding OutputWaterCelsiusDegree, StringFormat={}{0:#0.0}}" Header="出水温度℃" /> | ||
<DataGridTextColumn Binding="{Binding InputWaterCelsiusDegree, StringFormat={}{0:#0.0}}" Header="进水温度℃" /> | ||
<DataGridTextColumn Binding="{Binding HeaterOutputWaterCelsiusDegree, StringFormat={}{0:#0.0}}" Header="加热器出水温度℃" /> | ||
<DataGridTextColumn Binding="{Binding EnvironmentCelsiusDegree, StringFormat={}{0:#0.0}}" Header="环境温度℃" /> | ||
<DataGridTextColumn Binding="{Binding WaterPumpFlowRateCubicMeterPerHour, StringFormat={}{0:#0.0}}" Header="水泵流量m3/h" /> | ||
<DataGridTextColumn Binding="{Binding HeaterPowerKilowatt, StringFormat={}{0:#0.0}}" Header="加热功率kW" /> | ||
</DataGrid.Columns> | ||
</DataGrid> | ||
</Grid> | ||
</UserControl> |