PwtRecipeView.xaml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <UserControl xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  2. xmlns:UserControls="clr-namespace:CyberX8_Themes.UserControls;assembly=CyberX8_Themes"
  3. x:Class="CyberX8_MainPages.Views.PwtRecipeView"
  4. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  5. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:local="clr-namespace:CyberX8_MainPages.Views"
  9. xmlns:prism="http://prismlibrary.com/"
  10. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  11. xmlns:converters="clr-namespace:CyberX8_MainPages.Converters"
  12. prism:ViewModelLocator.AutoWireViewModel="True"
  13. mc:Ignorable="d"
  14. d:DesignHeight="800" d:DesignWidth="1800" Loaded="UserControl_Loaded">
  15. <UserControl.Resources>
  16. <converters:BoolReverseConverter x:Key="boolReverseConverter"/>
  17. </UserControl.Resources>
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="100"></RowDefinition>
  21. <RowDefinition/>
  22. </Grid.RowDefinitions>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="50"></ColumnDefinition>
  25. <ColumnDefinition Width="400"></ColumnDefinition>
  26. <ColumnDefinition Width="700"></ColumnDefinition>
  27. <ColumnDefinition Width="500"></ColumnDefinition>
  28. <ColumnDefinition/>
  29. </Grid.ColumnDefinitions>
  30. <UserControls:RecipeFileLoadControl Grid.Row="1" Grid.Column="1" Title="Pwt Recipe" RecipeNodes="{Binding RecipeNodes}" OperationCommand="{Binding OperationCommand}"
  31. RecipeLocation="{Binding CurrentNode.RecipeLocation}" EditEnable="{Binding EditEnable}" CreateEnable="{Binding CreateEnable}" RecipeFileName="{Binding CurrentNode.FileName}"
  32. CreateCommand="{Binding CreateCommand}" EditCommand="{Binding EditCommand}"/>
  33. <Grid Grid.Row="1" Grid.Column="2">
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="70"></RowDefinition>
  36. <RowDefinition Height="70"></RowDefinition>
  37. <RowDefinition/>
  38. </Grid.RowDefinitions>
  39. <GroupBox Header="PPID" Grid.Row="0">
  40. <TextBlock Text="{Binding Recipe.Ppid}" FontSize="20" VerticalAlignment="Center" TextAlignment="Center">
  41. </TextBlock>
  42. </GroupBox>
  43. <GroupBox Header="Description" Grid.Row="1">
  44. <TextBlock Text="{Binding Recipe.Description}" FontSize="18" VerticalAlignment="Center" TextAlignment="Center">
  45. </TextBlock>
  46. </GroupBox>
  47. <Grid Grid.Row="2">
  48. <GroupBox Header="DI Water Rinse">
  49. <Grid>
  50. <Grid.RowDefinitions>
  51. <RowDefinition></RowDefinition>
  52. <RowDefinition Height="70"></RowDefinition>
  53. </Grid.RowDefinitions>
  54. <Grid Grid.Row="0">
  55. <Grid.ColumnDefinitions>
  56. <ColumnDefinition Width="300"></ColumnDefinition>
  57. <ColumnDefinition Width="100"></ColumnDefinition>
  58. <ColumnDefinition/>
  59. </Grid.ColumnDefinitions>
  60. <GroupBox Header="Scanning" Grid.Column="0" Height="370">
  61. <Grid>
  62. <Grid.RowDefinitions>
  63. <RowDefinition Height="88"/>
  64. <RowDefinition Height="88"/>
  65. <RowDefinition Height="88"/>
  66. <RowDefinition/>
  67. </Grid.RowDefinitions>
  68. <UserControls:GroupTextBoxControl Grid.Row="0" Title="Number of Scans" Unit="" MinValue="1" MaxValue="99" IntValue="{Binding Recipe.NumberOfScans,Mode=TwoWay}" ValidResult="{Binding PropertyValidResultDic[NumberOfScans],Mode=TwoWay}" Width="290"/>
  69. <GroupBox Grid.Row="1" Header="Keepwet Enable" IsEnabled="{Binding Enable}">
  70. <Grid>
  71. <RadioButton Content="False" Height="35" Width="100" VerticalContentAlignment="Center" HorizontalAlignment="Right"
  72. IsChecked="{Binding Recipe.KeepWet,Converter={StaticResource boolReverseConverter}}" Margin="0,15,0,16"></RadioButton>
  73. <RadioButton Content="True" Height="35" Width="100" VerticalContentAlignment="Center" HorizontalAlignment="Left"
  74. IsChecked="{Binding Recipe.KeepWet}" Margin="40,15,0,16" ></RadioButton>
  75. </Grid>
  76. </GroupBox>
  77. </Grid>
  78. </GroupBox>
  79. </Grid>
  80. </Grid>
  81. </GroupBox>
  82. </Grid>
  83. </Grid>
  84. <Grid Grid.Row="1" Grid.Column="3">
  85. <Grid.RowDefinitions>
  86. <RowDefinition Height="70"></RowDefinition>
  87. <RowDefinition Height="70"></RowDefinition>
  88. <RowDefinition/>
  89. <RowDefinition Height="70"></RowDefinition>
  90. </Grid.RowDefinitions>
  91. <Grid Grid.Row="0" IsEnabled="{Binding Enable}">
  92. <Grid.ColumnDefinitions>
  93. <ColumnDefinition/>
  94. <ColumnDefinition/>
  95. <ColumnDefinition/>
  96. </Grid.ColumnDefinitions>
  97. <Button Grid.Column="0" Style="{StaticResource SysBtnStyle}" Content="Save" Height="35" Width="100" Command="{Binding SaveRecipeCommand}"></Button>
  98. <Button Grid.Column="1" Style="{StaticResource SysBtnStyle}" Content="SaveAs" Height="35" Width="100" Command="{Binding SaveAsRecipeCommand}"></Button>
  99. </Grid>
  100. </Grid>
  101. </Grid>
  102. </UserControl>