-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRolloverPredictWindow.axaml
More file actions
115 lines (104 loc) · 5.08 KB
/
RolloverPredictWindow.axaml
File metadata and controls
115 lines (104 loc) · 5.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.Avalonia;assembly=LiveChartsCore.SkiaSharpView.Avalonia"
xmlns:local="clr-namespace:AvaloniaApplicationtest1"
x:Class="AvaloniaApplicationtest1.RolloverPredictWindow"
Title="RolloverPredict"
Width="1080" Height="720"
Background="LightSeaGreen"
x:DataType="local:RolloverPredictWindow">
<Grid Margin="20">
<!-- 定义行 -->
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="10" />
<RowDefinition Height="*" />
<RowDefinition Height="10" />
<RowDefinition Height="*" />
<RowDefinition Height="10" />
<RowDefinition Height="200" />
</Grid.RowDefinitions>
<!-- 定义列 -->
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="10" />
<ColumnDefinition Width="500" />
</Grid.ColumnDefinitions>
<!-- 第一行:功能区 -->
<StackPanel Grid.Row="0" Grid.Column="0" Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center">
<ComboBox x:Name="LTDComboBox" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="15,0,15,0" Width="300" />
<Button Content="Show" HorizontalAlignment="Right" Margin="10,0,0,0" Click="OnShowButtonClick" />
</StackPanel>
<!-- 第三行,第一列:LTD双X轴图右 -->
<ScrollViewer Grid.Row="2" Grid.Column="0" Grid.RowSpan="3" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
<lvc:CartesianChart Series="{Binding LTDChartSeries}" XAxes="{Binding LTDChartXAxes}" YAxes="{Binding LTDChartYAxes}">
</lvc:CartesianChart>
</ScrollViewer>
<!-- 第三行,第三列:表格区 -->
<ScrollViewer Grid.Row="2" Grid.Column="2" Grid.RowSpan="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
<StackPanel Name="InputDataStackPanel" Orientation="Vertical" Background="lightYellow">
<!-- 数据表将会在这里动态添加 -->
</StackPanel>
</ScrollViewer>
<!-- 第五行,第三列:结果区 -->
<ScrollViewer Grid.Row="4" Grid.Column="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Background="LightPink">
<StackPanel Orientation="Vertical">
<TextBlock Text="-LTD测量结果-" FontWeight="Bold" FontSize="16" Margin="0,10,0,10" />
<!-- 平均密度 -->
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="平均密度:" Width="100" Margin="0,5"/>
<TextBox Text="{Binding AverageDensity}" IsReadOnly="True" Width="200" />
<Label Content="kg/m³" Width="120" Margin="5,5"/>
</StackPanel>
<!-- 平均温度 -->
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="平均温度:" Width="100" Margin="0,5"/>
<TextBox Text="{Binding AverageTemperature}" IsReadOnly="True" Width="200" />
<Label Content="℃" Width="120" Margin="5,5"/>
</StackPanel>
<!-- 最大密度差 -->
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="最大密度差:" Width="100" Margin="0,5"/>
<TextBox Text="{Binding MaxDDifference}" IsReadOnly="True" Width="200" />
<Label Content="kg/m³" Width="120" Margin="5,5"/>
</StackPanel>
<!-- 最大温度差 -->
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="最大温度差:" Width="100" Margin="0,5"/>
<TextBox Text="{Binding MaxTDifference}" IsReadOnly="True" Width="200" />
<Label Content="℃" Width="120" Margin="5,5"/>
</StackPanel>
<TextBlock Text="-仿真计算结果-" FontWeight="Bold" FontSize="16" Margin="0,10,0,10" />
<!-- 静态蒸发率 -->
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="平均密度:" Width="100" Margin="0,5"/>
<TextBox Text="0" IsReadOnly="True" Width="200" />
<Label Content="kg/m³" Width="120" Margin="5,5"/>
</StackPanel>
<TextBlock Text="-仿真预测结果-" FontWeight="Bold" FontSize="16" Margin="0,10,0,10" />
<!-- 到达翻滚时间 -->
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="平均温度:" Width="100" Margin="0,5"/>
<TextBox Text="1" IsReadOnly="True" Width="200" />
<Label Content="℃" Width="120" Margin="5,5"/>
</StackPanel>
<!-- 翻滚峰值蒸发率 -->
<StackPanel Orientation="Horizontal" Margin="0,5">
<Label Content="最大密度差:" Width="100" Margin="0,5"/>
<TextBox Text="2" IsReadOnly="True" Width="200" />
<Label Content="kg/m³" Width="120" Margin="5,5"/>
</StackPanel>
</StackPanel>
</ScrollViewer>
<!-- 第七行:LOG区 -->
<ListBox Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" Name="LogListBox"
VerticalAlignment="Stretch" HorizontalAlignment="Stretch"
Background="lightGray" Margin="0,0,10,0">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBox Text="{Binding}" IsReadOnly="True" BorderThickness="0" Background="Transparent" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
</Window>