|
76 | 76 | </UniformGrid> |
77 | 77 |
|
78 | 78 | <UniformGrid Columns="2" Margin="0,10,0,10"> |
79 | | - |
| 79 | + |
80 | 80 |
|
81 | 81 | <StackPanel Margin="0,0,5,0"> |
82 | 82 | <DockPanel> |
|
216 | 216 | <TextBox Text="{Binding SchedulerOptions.OriginalInferenceSteps}"/> |
217 | 217 | </StackPanel> |
218 | 218 | <StackPanel Margin="1,0,1,0"> |
219 | | - |
220 | 219 | </StackPanel> |
221 | 220 | <StackPanel VerticalAlignment="Bottom"> |
222 | | - |
| 221 | + |
223 | 222 | </StackPanel> |
224 | 223 | </UniformGrid> |
225 | 224 |
|
|
231 | 230 |
|
232 | 231 | </StackPanel> |
233 | 232 | </TabItem> |
| 233 | + |
| 234 | + <!--Automation--> |
| 235 | + <TabItem> |
| 236 | + <TabItem.Header> |
| 237 | + <StackPanel Orientation="Horizontal" Margin="5"> |
| 238 | + <userControls:FontAwesome Icon="" IconStyle="Light"/> |
| 239 | + <TextBlock Text="Automation" Margin="5,0,0,0"/> |
| 240 | + </StackPanel> |
| 241 | + </TabItem.Header> |
| 242 | + <StackPanel Margin="5"> |
| 243 | + |
| 244 | + <CheckBox Content="Enable Automation" IsChecked="{Binding BatchOptions.IsAutomationEnabled}" Margin="0,10,0,0"/> |
| 245 | + |
| 246 | + <StackPanel IsEnabled="{Binding BatchOptions.IsAutomationEnabled}"> |
| 247 | + |
| 248 | + <StackPanel> |
| 249 | + <Label>Automation Type</Label> |
| 250 | + <ComboBox ItemsSource="{Binding Source={StaticResource BatchOptionType}}" SelectedItem="{Binding BatchOptions.BatchType}"/> |
| 251 | + </StackPanel> |
| 252 | + |
| 253 | + |
| 254 | + <!--Seed--> |
| 255 | + <StackPanel Margin="0,10"> |
| 256 | + <UniformGrid Columns="3"> |
| 257 | + <TextBlock Text="Count"/> |
| 258 | + <TextBlock /> |
| 259 | + <TextBlock /> |
| 260 | + </UniformGrid> |
| 261 | + <UniformGrid Columns="3"> |
| 262 | + <TextBox Text="{Binding BatchOptions.ValueTo}" Margin="2,0"/> |
| 263 | + <TextBlock /> |
| 264 | + <TextBlock /> |
| 265 | + </UniformGrid> |
| 266 | + <StackPanel.Style> |
| 267 | + <Style TargetType="{x:Type StackPanel}"> |
| 268 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 269 | + <Style.Triggers> |
| 270 | + <DataTrigger Binding="{Binding BatchOptions.BatchType, ElementName=UI}" Value="Seed" > |
| 271 | + <Setter Property="Visibility" Value="Visible" /> |
| 272 | + </DataTrigger> |
| 273 | + </Style.Triggers> |
| 274 | + </Style> |
| 275 | + </StackPanel.Style> |
| 276 | + </StackPanel> |
| 277 | + |
| 278 | + <!--Step--> |
| 279 | + <StackPanel Margin="0,10"> |
| 280 | + <UniformGrid Columns="3"> |
| 281 | + <TextBlock Text="Start Step"/> |
| 282 | + <TextBlock Text="End Step"/> |
| 283 | + <TextBlock Text="Increment"/> |
| 284 | + </UniformGrid> |
| 285 | + <UniformGrid Columns="3"> |
| 286 | + <TextBox Text="{Binding BatchOptions.ValueFrom}" Margin="0,0,2,0"/> |
| 287 | + <TextBox Text="{Binding BatchOptions.ValueTo}" Margin="2,0"/> |
| 288 | + <TextBox Text="{Binding BatchOptions.Increment}" Margin="2,0,0,0"/> |
| 289 | + </UniformGrid> |
| 290 | + <StackPanel.Style> |
| 291 | + <Style TargetType="{x:Type StackPanel}"> |
| 292 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 293 | + <Style.Triggers> |
| 294 | + <DataTrigger Binding="{Binding BatchOptions.BatchType, ElementName=UI}" Value="Step" > |
| 295 | + <Setter Property="Visibility" Value="Visible" /> |
| 296 | + </DataTrigger> |
| 297 | + </Style.Triggers> |
| 298 | + </Style> |
| 299 | + </StackPanel.Style> |
| 300 | + </StackPanel> |
| 301 | + |
| 302 | + |
| 303 | + <!--Guidance--> |
| 304 | + <StackPanel Margin="0,10"> |
| 305 | + <UniformGrid Columns="3"> |
| 306 | + <TextBlock Text="Start Value"/> |
| 307 | + <TextBlock Text="End Value"/> |
| 308 | + <TextBlock Text="Increment"/> |
| 309 | + </UniformGrid> |
| 310 | + <UniformGrid Columns="3"> |
| 311 | + <TextBox Text="{Binding BatchOptions.ValueFrom}" Margin="0,0,2,0"/> |
| 312 | + <TextBox Text="{Binding BatchOptions.ValueTo}" Margin="2,0"/> |
| 313 | + <TextBox Text="{Binding BatchOptions.Increment}" Margin="2,0,0,0"/> |
| 314 | + </UniformGrid> |
| 315 | + <StackPanel.Style> |
| 316 | + <Style TargetType="{x:Type StackPanel}"> |
| 317 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 318 | + <Style.Triggers> |
| 319 | + <DataTrigger Binding="{Binding BatchOptions.BatchType, ElementName=UI}" Value="Guidance" > |
| 320 | + <Setter Property="Visibility" Value="Visible" /> |
| 321 | + </DataTrigger> |
| 322 | + </Style.Triggers> |
| 323 | + </Style> |
| 324 | + </StackPanel.Style> |
| 325 | + </StackPanel> |
| 326 | + |
| 327 | + |
| 328 | + <!--Strength--> |
| 329 | + <StackPanel Margin="0,10"> |
| 330 | + <UniformGrid Columns="3"> |
| 331 | + <TextBlock Text="Start Value"/> |
| 332 | + <TextBlock Text="End Value"/> |
| 333 | + <TextBlock Text="Increment"/> |
| 334 | + </UniformGrid> |
| 335 | + <UniformGrid Columns="3"> |
| 336 | + <TextBox Text="{Binding BatchOptions.ValueFrom}" Margin="0,0,2,0"/> |
| 337 | + <TextBox Text="{Binding BatchOptions.ValueTo}" Margin="2,0"/> |
| 338 | + <TextBox Text="{Binding BatchOptions.Increment}" Margin="2,0,0,0"/> |
| 339 | + </UniformGrid> |
| 340 | + <StackPanel.Style> |
| 341 | + <Style TargetType="{x:Type StackPanel}"> |
| 342 | + <Setter Property="Visibility" Value="Collapsed" /> |
| 343 | + <Style.Triggers> |
| 344 | + <DataTrigger Binding="{Binding BatchOptions.BatchType, ElementName=UI}" Value="Strength" > |
| 345 | + <Setter Property="Visibility" Value="Visible" /> |
| 346 | + </DataTrigger> |
| 347 | + </Style.Triggers> |
| 348 | + </Style> |
| 349 | + </StackPanel.Style> |
| 350 | + </StackPanel> |
| 351 | + |
| 352 | + <!--Progress--> |
| 353 | + <StackPanel Margin="0,5"> |
| 354 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> |
| 355 | + <TextBlock Text="Steps " /> |
| 356 | + <TextBlock Text="{Binding BatchOptions.StepValue}" DockPanel.Dock="Left" /> |
| 357 | + <TextBlock Text=" / " /> |
| 358 | + <TextBlock Text="{Binding BatchOptions.StepsValue}" DockPanel.Dock="Right"/> |
| 359 | + </StackPanel> |
| 360 | + <ProgressBar Value="{Binding BatchOptions.StepValue}" Maximum="{Binding BatchOptions.StepsValue}" Height="22"/> |
| 361 | + |
| 362 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0,5,0,0 "> |
| 363 | + <TextBlock Text="Batch " /> |
| 364 | + <TextBlock Text="{Binding BatchOptions.BatchValue}" DockPanel.Dock="Left" /> |
| 365 | + <TextBlock Text=" / " /> |
| 366 | + <TextBlock Text="{Binding BatchOptions.BatchsValue}" DockPanel.Dock="Right"/> |
| 367 | + </StackPanel> |
| 368 | + <ProgressBar Value="{Binding BatchOptions.BatchValue}" Maximum="{Binding BatchOptions.BatchsValue}" Height="22"/> |
| 369 | + </StackPanel> |
| 370 | + |
| 371 | + </StackPanel> |
| 372 | + |
| 373 | + </StackPanel> |
| 374 | + </TabItem> |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + <TabControl.Template> |
| 379 | + <ControlTemplate TargetType="TabControl"> |
| 380 | + <DockPanel> |
| 381 | + <UniformGrid IsItemsHost="True" Rows="1" DockPanel.Dock="Top"></UniformGrid> |
| 382 | + <ContentPresenter ContentSource="SelectedContent"></ContentPresenter> |
| 383 | + </DockPanel> |
| 384 | + </ControlTemplate> |
| 385 | + </TabControl.Template> |
234 | 386 | </TabControl> |
235 | 387 | </DockPanel> |
236 | 388 | </UserControl> |
0 commit comments