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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="UVtools.WPF.Controls.Tools.ToolDynamicLiftsControl">
<StackPanel Spacing="10">
<Grid RowDefinitions="Auto,10,Auto,10,Auto,10,Auto,10,Auto"
ColumnDefinitions="Auto,10,150,20,150,5,Auto">
<TextBlock Grid.Row="0" Grid.Column="0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="Property"/>
<TextBlock Grid.Row="0" Grid.Column="2"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="Minimum"/>
<TextBlock Grid.Row="0" Grid.Column="4"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="Maximum"/>
<TextBlock Grid.Row="0" Grid.Column="6"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="Unit"/>
<TextBlock Grid.Row="2" Grid.Column="0"
VerticalAlignment="Center"
Text="Bottom lift height:"/>
<NumericUpDown Grid.Row="2" Grid.Column="2"
VerticalAlignment="Center"
Minimum="1"
Maximum="100"
Increment="0.5"
FormatString="F2"
Value="{Binding Operation.MinBottomLiftHeight}"/>
<TextBlock Grid.Row="2" Grid.Column="3"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="/"/>
<NumericUpDown Grid.Row="2" Grid.Column="4"
VerticalAlignment="Center"
Minimum="1"
Maximum="100"
Increment="0.5"
FormatString="F2"
Value="{Binding Operation.MaxBottomLiftHeight}"/>
<TextBlock Grid.Row="2" Grid.Column="6"
VerticalAlignment="Center"
Text="mm"/>
<TextBlock Grid.Row="4" Grid.Column="0"
VerticalAlignment="Center"
Text="Bottom lift speed:"/>
<NumericUpDown Grid.Row="4" Grid.Column="2"
VerticalAlignment="Center"
Minimum="5"
Maximum="1000"
Increment="1"
FormatString="F2"
Value="{Binding Operation.MinBottomLiftSpeed}"/>
<TextBlock Grid.Row="4" Grid.Column="3"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="/"/>
<NumericUpDown Grid.Row="4" Grid.Column="4"
VerticalAlignment="Center"
Minimum="5"
Maximum="1000"
Increment="1"
FormatString="F2"
Value="{Binding Operation.MaxBottomLiftSpeed}"/>
<TextBlock Grid.Row="4" Grid.Column="6"
VerticalAlignment="Center"
Text="mm/min"/>
<TextBlock Grid.Row="6" Grid.Column="0"
VerticalAlignment="Center"
Text="Lift height:"/>
<NumericUpDown Grid.Row="6" Grid.Column="2"
VerticalAlignment="Center"
Minimum="1"
Maximum="100"
Increment="0.5"
FormatString="F2"
Value="{Binding Operation.MinLiftHeight}"/>
<TextBlock Grid.Row="6" Grid.Column="3"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="/"/>
<NumericUpDown Grid.Row="6" Grid.Column="4"
VerticalAlignment="Center"
Minimum="1"
Maximum="100"
Increment="0.5"
FormatString="F2"
Value="{Binding Operation.MaxLiftHeight}"/>
<TextBlock Grid.Row="6" Grid.Column="6"
VerticalAlignment="Center"
Text="mm"/>
<TextBlock Grid.Row="8" Grid.Column="0"
VerticalAlignment="Center"
Text="Lift speed:"/>
<NumericUpDown Grid.Row="8" Grid.Column="2"
VerticalAlignment="Center"
Minimum="5"
Maximum="1000"
Increment="1"
FormatString="F2"
Value="{Binding Operation.MinLiftSpeed}"/>
<TextBlock Grid.Row="8" Grid.Column="3"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="/"/>
<NumericUpDown Grid.Row="8" Grid.Column="4"
VerticalAlignment="Center"
Minimum="5"
Maximum="1000"
Increment="1"
FormatString="F2"
Value="{Binding Operation.MaxLiftSpeed}"/>
<TextBlock Grid.Row="8" Grid.Column="6"
VerticalAlignment="Center"
Text="mm/min"/>
</Grid>
<CheckBox
Content="Update light-off delay accordingly"
ToolTip.Tip="If enabled, it will auto calculate the correct light-off delay based on the set lift"
IsChecked="{Binding Operation.UpdateLightOffDelay}"/>
<Grid RowDefinitions="Auto,10,Auto"
ColumnDefinitions="Auto,20,Auto,5,Auto"
IsEnabled="{Binding Operation.UpdateLightOffDelay}">
<TextBlock Grid.Row="0" Grid.Column="0"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="Bottom light-off extra time"/>
<TextBlock Grid.Row="0" Grid.Column="1"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="/"/>
<TextBlock Grid.Row="0" Grid.Column="2"
VerticalAlignment="Center"
HorizontalAlignment="Center"
FontWeight="Bold"
Text="Normal light-off extra time"/>
<NumericUpDown Grid.Row="2" Grid.Column="0"
VerticalAlignment="Center"
Minimum="0"
Maximum="100"
Increment="1"
FormatString="F2"
Value="{Binding Operation.LightOffDelayBottomExtraTime}"/>
<TextBlock Grid.Row="2" Grid.Column="1"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Text="/"/>
<NumericUpDown Grid.Row="2" Grid.Column="2"
VerticalAlignment="Center"
Minimum="0"
Maximum="100"
Increment="1"
FormatString="F2"
Value="{Binding Operation.LightOffDelayExtraTime}"/>
<TextBlock Grid.Row="2" Grid.Column="4"
VerticalAlignment="Center"
Text="s"/>
</Grid>
</StackPanel>
</UserControl>
|