RecipeControlMetal.xaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <UserControl x:Class="CyberX8_Themes.UserControls.RecipeControlMetal"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
  7. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  8. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  9. mc:Ignorable="d" x:Name="self" d:DesignWidth="520" Height="370">
  10. <UserControl.Resources>
  11. <converters:RecipeIconConverter x:Key="recipeIconConverter"/>
  12. <converters:BoolToInverseBoolConverter x:Key="BoolToInverseBoolConverter" />
  13. </UserControl.Resources>
  14. <GroupBox
  15. Header="{Binding ModuleTitle, ElementName=self}"
  16. BorderBrush="DarkGray">
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="20"></RowDefinition>
  20. <RowDefinition Height="50"></RowDefinition>
  21. <RowDefinition Height="30"></RowDefinition>
  22. <RowDefinition Height="30"></RowDefinition>
  23. <RowDefinition Height="50"></RowDefinition>
  24. <RowDefinition Height="50"></RowDefinition>
  25. <RowDefinition Height="50"></RowDefinition>
  26. <RowDefinition Height="50"></RowDefinition>
  27. <RowDefinition Height="20"></RowDefinition>
  28. <RowDefinition/>
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="310"></ColumnDefinition>
  32. <ColumnDefinition Width="100"></ColumnDefinition>
  33. <ColumnDefinition Width="100"></ColumnDefinition>
  34. <ColumnDefinition/>
  35. </Grid.ColumnDefinitions>
  36. <Button Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource SysBtnStyle}" Content="Run" Height="35" Width="140"
  37. Click="RunRecipe_Click" IsEnabled="{Binding ElementName=self,Path=LoadEnabled}"/>
  38. <Label Grid.Row="2" Grid.RowSpan="2" Grid.Column="1" Height="40" FontSize="14" FontWeight="Bold" Content="Cycle" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Center" HorizontalAlignment="Center" />
  39. <Border Grid.Row="2" Grid.Column="2" Margin="10,0,20,0" Background="Black" Height="22" Width="30">
  40. <TextBlock Text="{Binding ElementName=self,Path=AchievedCycleTimes}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" TextAlignment="Center" HorizontalAlignment="Left"/>
  41. </Border>
  42. <Control:IntegerTextBox Grid.Row="3" Grid.Column="2" Margin="10,0,20,0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="15" FontWeight="Bold" Height="22" Width="30"
  43. Value="{Binding ElementName=self,Path=InputCycleTimes,Mode=TwoWay}"
  44. TextboxName="InputCycleTimes"
  45. />
  46. <Button Grid.Row="6" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource SysBtnStyle}" Content="Abort" Height="35" Width="140" Click="Abort_Click" IsEnabled="{Binding ElementName=self,Path=LoadEnabled}"/>
  47. <Button Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" Style="{StaticResource SysBtnStyle}" Content="Edit" Height="35" Width="140" Click="Edit_Click" IsEnabled="{Binding ElementName=self,Path=LoadEnabled}"/>
  48. <local:RecipeLoadControl Grid.Row="0" Grid.RowSpan="10"
  49. RecipeType="{Binding ElementName=self,Path=RecipeType}"
  50. SelectedRecipeNode="{Binding ElementName=self,Path=SelectedRecipeNode,Mode=TwoWay}"
  51. IsEngineeringMode ="{Binding ElementName=self,Path=IsEngineering,Mode=TwoWay}"
  52. IsProductionMode ="{Binding ElementName=self,Path=IsProduction,Mode=TwoWay}"
  53. />
  54. <Grid Grid.Row="8" Grid.Column="1" Grid.RowSpan="2" Grid.ColumnSpan="2">
  55. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Orientation="Horizontal">
  56. <CheckBox Margin="0,0,0,0" x:Name="CheckBoxA" Checked="Side_Checked" Unchecked="Side_Checked" Content="A" VerticalAlignment="Center"/>
  57. <CheckBox Margin="20,0,0,0" x:Name="CheckBoxB" Checked="Side_Checked" Unchecked="Side_Checked" Content="B" VerticalAlignment="Center"/>
  58. </StackPanel>
  59. </Grid>
  60. </Grid>
  61. </GroupBox>
  62. </UserControl>