VPWCellUIControl.xaml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <UserControl x:Class="PunkHPX8_Themes.UserControls.VPWCellUIControl"
  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:userControls="clr-namespace:PunkHPX8_Themes.UserControls"
  7. xmlns:customControls="clr-namespace:PunkHPX8_Themes.CustomControls"
  8. xmlns:converters="clr-namespace:PunkHPX8_Themes.Converters"
  9. xmlns:local="clr-namespace:PunkHPX8_Themes.UserControls"
  10. mc:Ignorable="d" Name="self"
  11. d:DesignHeight="600" d:DesignWidth="600">
  12. <UserControl.Resources>
  13. <converters:BoolToVisibility2 x:Key="boolToVisibility2"></converters:BoolToVisibility2>
  14. <converters:BoolToVisibility x:Key="boolToVisibility"></converters:BoolToVisibility>
  15. <converters:BoolToOrientation x:Key="boolToOrientation"></converters:BoolToOrientation>
  16. <Style x:Key="DisableContextMenuStyle" TargetType="userControls:Pump1">
  17. <Setter Property="IsEnabled" Value="False"/>
  18. </Style>
  19. <ContextMenu x:Key="DripValve">
  20. <MenuItem Header="Open" Click="OpenDripValve_Click"/>
  21. <MenuItem Header="Close" Click="CloseDripValve_Click"/>
  22. </ContextMenu>
  23. <ContextMenu x:Key="SmallValve">
  24. <MenuItem Header="Open" Click="OpenSmallValve_Click"/>
  25. <MenuItem Header="Close" Click="CloseSmallValve_Click"/>
  26. </ContextMenu>
  27. <ContextMenu x:Key="LargeValve">
  28. <MenuItem Header="Open" Click="OpenLargeValve_Click"/>
  29. <MenuItem Header="Close" Click="CloseLargeValve_Click"/>
  30. </ContextMenu>
  31. <ContextMenu x:Key="VentValve">
  32. <MenuItem Header="Open" Click="OpenVentValve_Click"/>
  33. <MenuItem Header="Close" Click="CloseVentValve_Click"/>
  34. </ContextMenu>
  35. <ContextMenu x:Key="DrainValve">
  36. <MenuItem Header="Open" Click="OpenDrainValve_Click"/>
  37. <MenuItem Header="Close" Click="CloseDrainValve_Click"/>
  38. </ContextMenu>
  39. <ContextMenu x:Key="CellVacuumValve">
  40. <MenuItem Header="Open" Click="OpenCellVacuumValve_Click"/>
  41. <MenuItem Header="Close" Click="CloseCellVacuumValve_Click"/>
  42. </ContextMenu>
  43. </UserControl.Resources>
  44. <Canvas>
  45. <Grid Height="50" Width="100" Canvas.Left="149" Canvas.Top="110" >
  46. <Grid.RowDefinitions>
  47. <RowDefinition Height="30"></RowDefinition>
  48. <RowDefinition Height="20"></RowDefinition>
  49. </Grid.RowDefinitions>
  50. <Grid Grid.Row="0">
  51. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  52. Status="{Binding ElementName=self,Path=DripValve}"
  53. IsCanEdit="True"
  54. ContextMenu="{StaticResource DripValve}" RenderTransformOrigin="0.5,0.5">
  55. <customControls:CommonValveControl.RenderTransform>
  56. <TransformGroup>
  57. <ScaleTransform/>
  58. <SkewTransform/>
  59. <RotateTransform Angle="90"/>
  60. <TranslateTransform/>
  61. </TransformGroup>
  62. </customControls:CommonValveControl.RenderTransform>
  63. </customControls:CommonValveControl>
  64. </Grid>
  65. <Grid Grid.Row="1">
  66. <Label Margin="62,-18,-8,8" Height="30" FontSize="10" FontWeight="Bold" Content="Drip" />
  67. </Grid>
  68. </Grid>
  69. <Grid Height="50" Width="100" Canvas.Left="258" Canvas.Top="109" >
  70. <Grid.RowDefinitions>
  71. <RowDefinition Height="30"></RowDefinition>
  72. <RowDefinition Height="20"></RowDefinition>
  73. </Grid.RowDefinitions>
  74. <Grid Grid.Row="0">
  75. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  76. Status="{Binding ElementName=self,Path=SmallValve}"
  77. IsCanEdit="True"
  78. ContextMenu="{StaticResource SmallValve}" RenderTransformOrigin="0.5,0.5">
  79. <customControls:CommonValveControl.RenderTransform>
  80. <TransformGroup>
  81. <ScaleTransform/>
  82. <SkewTransform/>
  83. <RotateTransform Angle="90"/>
  84. <TranslateTransform/>
  85. </TransformGroup>
  86. </customControls:CommonValveControl.RenderTransform>
  87. </customControls:CommonValveControl>
  88. </Grid>
  89. <Grid Grid.Row="1">
  90. <Label Margin="60,-20,-16,10" Height="30" FontSize="10" FontWeight="Bold" Content="Small" />
  91. </Grid>
  92. </Grid>
  93. <Grid Height="50" Width="100" Canvas.Left="355" Canvas.Top="111" HorizontalAlignment="Left" VerticalAlignment="Center" >
  94. <Grid.RowDefinitions>
  95. <RowDefinition Height="30"></RowDefinition>
  96. <RowDefinition Height="20"></RowDefinition>
  97. </Grid.RowDefinitions>
  98. <Grid Grid.Row="0" Margin="0,-1,0,1">
  99. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  100. Status="{Binding ElementName=self,Path=LargeValve}"
  101. IsCanEdit="True"
  102. ContextMenu="{StaticResource LargeValve}" RenderTransformOrigin="0.5,0.5">
  103. <customControls:CommonValveControl.RenderTransform>
  104. <TransformGroup>
  105. <ScaleTransform/>
  106. <SkewTransform/>
  107. <RotateTransform Angle="90"/>
  108. <TranslateTransform/>
  109. </TransformGroup>
  110. </customControls:CommonValveControl.RenderTransform>
  111. </customControls:CommonValveControl>
  112. </Grid>
  113. <Grid Grid.Row="1">
  114. <Label Margin="62,-22,-30,12" Height="30" FontSize="10" FontWeight="Bold" Content="Large" />
  115. </Grid>
  116. </Grid>
  117. <Grid Height="50" Width="100" Canvas.Left="436" Canvas.Top="203" HorizontalAlignment="Center" VerticalAlignment="Top" >
  118. <Grid.RowDefinitions>
  119. <RowDefinition Height="30"></RowDefinition>
  120. <RowDefinition Height="20"></RowDefinition>
  121. </Grid.RowDefinitions>
  122. <Grid Grid.Row="0">
  123. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  124. Status="{Binding ElementName=self,Path=VentValve}"
  125. IsCanEdit="True"
  126. ContextMenu="{StaticResource VentValve}"/>
  127. </Grid>
  128. <Grid Grid.Row="1">
  129. <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10" FontWeight="Bold" Content="Vent Vlave" />
  130. </Grid>
  131. </Grid>
  132. <Grid Height="50" Width="100" Canvas.Left="451" Canvas.Top="378" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="2">
  133. <Grid.RowDefinitions>
  134. <RowDefinition Height="30"></RowDefinition>
  135. <RowDefinition Height="20"></RowDefinition>
  136. </Grid.RowDefinitions>
  137. <Grid Grid.Row="0" >
  138. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  139. Status="{Binding ElementName=self,Path=DrainValve}"
  140. IsCanEdit="True"
  141. ContextMenu="{StaticResource DrainValve}"/>
  142. </Grid>
  143. <Grid Grid.Row="1">
  144. <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10" FontWeight="Bold" Content="Drain Valve" />
  145. </Grid>
  146. </Grid>
  147. <Grid Height="50" Width="100" Canvas.Left="43" Canvas.Top="431" Panel.ZIndex="2">
  148. <Grid.RowDefinitions>
  149. <RowDefinition Height="30"></RowDefinition>
  150. <RowDefinition Height="20"></RowDefinition>
  151. </Grid.RowDefinitions>
  152. <Grid Grid.Row="0">
  153. <customControls:CommonValveControl Height="16" Width="16" ValveOrientation="Horizontal"
  154. Status="{Binding ElementName=self,Path=VacuumValve}"
  155. IsCanEdit="True"
  156. ContextMenu="{StaticResource CellVacuumValve}"/>
  157. </Grid>
  158. <Grid Grid.Row="1">
  159. <Label Margin="12,0,0,0" Height="30" Width="100" FontSize="10" FontWeight="Bold" Content="Vacuum Valve" />
  160. </Grid>
  161. </Grid>
  162. <Grid Height="50" Width="120" Canvas.Left="420" Canvas.Top="14" >
  163. <Grid.RowDefinitions>
  164. <RowDefinition Height="20"></RowDefinition>
  165. <RowDefinition Height="30"></RowDefinition>
  166. </Grid.RowDefinitions>
  167. <Grid.ColumnDefinitions>
  168. <ColumnDefinition Width="60"></ColumnDefinition>
  169. <ColumnDefinition Width="60"></ColumnDefinition>
  170. </Grid.ColumnDefinitions>
  171. <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,10,0">
  172. <Label Content="DIWLoopDO" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
  173. </Grid>
  174. <Border Grid.Row="1" Grid.Column="0" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Right">
  175. <TextBlock Text="{Binding ElementName=self,Path=DIWLoopDo}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  176. </Border>
  177. <Border Grid.Row="1" Grid.Column="1" Margin="0,5,0,5 " Background="Black" Height="22" Width="40" VerticalAlignment="Center" HorizontalAlignment="Left">
  178. <TextBlock Text="ppm" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  179. </Border>
  180. </Grid>
  181. <Grid Height="50" Width="120" Canvas.Left="220" Canvas.Top="14" >
  182. <Grid.RowDefinitions>
  183. <RowDefinition Height="20"></RowDefinition>
  184. <RowDefinition Height="30"></RowDefinition>
  185. </Grid.RowDefinitions>
  186. <Grid.ColumnDefinitions>
  187. <ColumnDefinition Width="60"></ColumnDefinition>
  188. <ColumnDefinition Width="60"></ColumnDefinition>
  189. </Grid.ColumnDefinitions>
  190. <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,10,0">
  191. <Label Content="Diw Cell Flow" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
  192. </Grid>
  193. <Border Grid.Row="1" Grid.Column="0" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Right">
  194. <TextBlock Text="{Binding ElementName=self,Path=DIWFlow}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  195. </Border>
  196. <Border Grid.Row="1" Grid.Column="1" Margin="0,5,0,5 " Background="Black" Height="22" Width="40" VerticalAlignment="Center" HorizontalAlignment="Left">
  197. <TextBlock Text="L/min" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  198. </Border>
  199. </Grid>
  200. <Grid Height="50" Width="120" Canvas.Left="76" Canvas.Top="377" >
  201. <Grid.RowDefinitions>
  202. <RowDefinition Height="20"></RowDefinition>
  203. <RowDefinition Height="30"></RowDefinition>
  204. </Grid.RowDefinitions>
  205. <Grid.ColumnDefinitions>
  206. <ColumnDefinition Width="60"></ColumnDefinition>
  207. <ColumnDefinition Width="60"></ColumnDefinition>
  208. </Grid.ColumnDefinitions>
  209. <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Margin="0,0,10,0">
  210. <Label Content="Cell Vacuum" FontSize="10" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5,0,0,0"/>
  211. </Grid>
  212. <Border Grid.Row="1" Grid.Column="0" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Right">
  213. <TextBlock Text="{Binding ElementName=self,Path=CellVacuum}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  214. </Border>
  215. <Border Grid.Row="1" Grid.Column="1" Margin="0,5,0,5 " Background="Black" Height="22" Width="40" VerticalAlignment="Center" HorizontalAlignment="Left">
  216. <TextBlock Text="Toor" Foreground="Lime" FontSize="12" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  217. </Border>
  218. </Grid>
  219. <Image Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/VpwUp.png" Height="84" Width="254" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="181" Canvas.Top="163"/>
  220. <Image Source="pack://application:,,,/PunkHPX8_Themes;component/Themes/Images/parts/VpwCell.png" Height="236" Width="236" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="1" Canvas.Left="187" Canvas.Top="247"/>
  221. <userControls:FlowPipe Height="6" Width="360" IsFlowing="true" IsReverse="True" Panel.ZIndex="-1" Canvas.Left="195" Canvas.Top="66" HorizontalAlignment="Left" VerticalAlignment="Center" />
  222. <userControls:FlowPipe IsFlowing="{Binding ElementName=self,Path=LargeValve}" Height="8" Width="124" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Center" Panel.ZIndex="-1" Canvas.Left="409" Canvas.Top="70"/>
  223. <userControls:FlowPipe IsFlowing="{Binding ElementName=self,Path=DripValve}" Height="8" Width="124" RotateTransformValue="90" HorizontalAlignment="Center" VerticalAlignment="Top" Panel.ZIndex="-1" Canvas.Left="203" Canvas.Top="67"/>
  224. <userControls:FlowPipe IsFlowing="{Binding ElementName=self,Path=SmallValve}" Height="8" Width="124" RotateTransformValue="90" HorizontalAlignment="Left" VerticalAlignment="Center" Panel.ZIndex="-1" Canvas.Left="312" Canvas.Top="71"/>
  225. <userControls:FlowPipe Height="6" Width="130" IsFlowing="{Binding ElementName=self,Path=VentValve}" IsReverse="True" Panel.ZIndex="-1" Canvas.Left="424" Canvas.Top="215" HorizontalAlignment="Left" VerticalAlignment="Top" />
  226. <userControls:FlowPipe Height="6" Width="230" IsFlowing="{Binding ElementName=self,Path=DrainValve}" IsReverse="False" Panel.ZIndex="1" Canvas.Left="321" Canvas.Top="391" HorizontalAlignment="Left" VerticalAlignment="Center" />
  227. <userControls:FlowPipe Height="6" Width="260" IsFlowing="{Binding ElementName=self,Path=VacuumValve}" IsReverse="False" Panel.ZIndex="1" Canvas.Left="48" Canvas.Top="443" HorizontalAlignment="Center" VerticalAlignment="Top" />
  228. <Label Height="26" Width="63" FontSize="10" FontWeight="Bold" Content="DIW In" Canvas.Left="552" Canvas.Top="58" HorizontalAlignment="Center" VerticalAlignment="Top" />
  229. <Label Height="26" Width="63" FontSize="10" FontWeight="Bold" Content="N2 In" Canvas.Left="553" Canvas.Top="207" HorizontalAlignment="Left" VerticalAlignment="Top" />
  230. <Label Height="26" Width="63" FontSize="10" FontWeight="Bold" Content="To Drain" Canvas.Left="540" Canvas.Top="368" HorizontalAlignment="Left" VerticalAlignment="Top" RenderTransformOrigin="0.302,1.385" />
  231. <Label Height="26" Width="80" FontSize="10" FontWeight="Bold" Content="To VAC Pump" Canvas.Left="2" Canvas.Top="421" HorizontalAlignment="Center" VerticalAlignment="Top" />
  232. <Canvas Height="30" Width="150" Canvas.Left="231" Canvas.Top="231" RenderTransformOrigin="0.5,0.5" Panel.ZIndex="2">
  233. <Viewbox Canvas.Left="5" Canvas.Top="2.5" HorizontalAlignment="Left" VerticalAlignment="Top" Panel.ZIndex="5">
  234. <local:VPWWaferCtrl Width="140" Height="25" WaferData="{Binding ElementName=self, Path=WaferInfo}"/>
  235. </Viewbox>
  236. </Canvas>
  237. </Canvas>
  238. </UserControl>