MODilute.xaml 6.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <UserControl x:Class="Aitex.Core.UI.Control.MODilute"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:Aitex.Core.UI.Control"
  5. xmlns:cv="clr-namespace:Aitex.Core.UI.Converters"
  6. Height="310" Width="112" BorderThickness="1" MinWidth="112" MaxWidth="112" MinHeight="310" MaxHeight="310">
  7. <UserControl.Resources>
  8. <cv:ValveVisibleConvert x:Key="ValveVisibleConvert"/>
  9. <cv:ServiceModeConvert x:Key="ServiceModeConvert" />
  10. <cv:MoColorConvert x:Key="MoColorConvert" />
  11. <cv:MoNameConvert x:Key="MoNameConvert" />
  12. <cv:MoSourceHeightConvert x:Key="MoSourceHeightConvert" />
  13. <cv:MoSourceCanvasTopConvert x:Key="MoSourceCanvasTopConvert" />
  14. </UserControl.Resources>
  15. <Canvas x:Name="LayoutRoot" Width="111">
  16. <Rectangle x:Name="RecMOContent" MouseEnter="RecMOSource_MouseEnter" Cursor="Hand" MouseLeave="RecMOSource_MouseLeave" Height="37" Stroke="Black" Fill="AliceBlue" Width="41" RadiusX="4" RadiusY="4" Canvas.Top="237" Canvas.Left="18" />
  17. <Rectangle x:Name="RecMOSource" MouseEnter="RecMOSource_MouseEnter" Cursor="Hand" MouseLeave="RecMOSource_MouseLeave" Stroke="Black" Width="41" RadiusX="4" RadiusY="4" Canvas.Left="18"
  18. Fill="{Binding LineData, Converter={StaticResource MoColorConvert}}"
  19. Height="{Binding LineData, Converter={StaticResource MoSourceHeightConvert}}"
  20. Canvas.Top="{Binding LineData, Converter={StaticResource MoSourceCanvasTopConvert}}" />
  21. <Line Stroke="Black" X1="0" Y1="0" X2="0" Y2="180" Canvas.Top="127" Canvas.Left="3" />
  22. <Line Stroke="Black" X1="0" Y1="0" X2="20" Y2="0" Canvas.Top="127" Canvas.Left="3" />
  23. <Line Canvas.Left="22" Canvas.Top="87" Stroke="Black" X1="0" Y1="0" X2="0" Y2="185" />
  24. <Line Canvas.Left="22" Canvas.Top="87" Stroke="Black" X1="0" Y1="0" X2="65" Y2="0" />
  25. <Line Canvas.Left="87" Canvas.Top="87" Stroke="Black" X1="0" Y1="0" X2="0" Y2="-55" />
  26. <Line Canvas.Left="55" Canvas.Top="34" Stroke="Black" X1="0" X2="0" Y1="0" Y2="205" />
  27. <Line Canvas.Left="55" Canvas.Top="14" Stroke="Black" X1="0" X2="0" Y1="0" Y2="15" />
  28. <Line Canvas.Left="55" Canvas.Top="14" Stroke="Black" X1="0" X2="15" Y1="0" Y2="0" />
  29. <Line X1="0" Stroke="Black" Panel.ZIndex="-11" Y1="0" X2="33" Y2="0" Height="4" Canvas.Left="22" Canvas.Top="186" />
  30. <Line X1="0" Visibility="{Binding IsServiceMode, Converter={StaticResource ServiceModeConvert}}" Stroke="Black" Panel.ZIndex="-11" Y1="0" X2="33" Y2="0" Height="4" Canvas.Left="22" Canvas.Top="211" />
  31. <Line X1="0" Stroke="Black" Panel.ZIndex="-11" Y1="0" X2="0" Y2="30" Canvas.Left="69" />
  32. <local:GasValveV2 Command="{Binding Path=DeviceOperationCommand}" GasValveV2Direction="ToBottom" GasValveV2Data="{Binding Path=VavleRunData}" Height="33" Width="20" Canvas.Left="62" />
  33. <local:Knot Height="6" KnotT="Through" ThroughInnerColor="#FFC5D0D8" Width="6" Canvas.Top="28" Canvas.Left="57" />
  34. <!--MFC-->
  35. <local:AnalogControl x:Name="MfcInjectControl" Command="{Binding Path=DeviceOperationCommand}" DeviceData="{Binding Path=MfcInjectData}" Height="19.998" Panel.ZIndex="10" Canvas.Top="46" Canvas.Left="19" />
  36. <local:AnalogControl x:Name="MfcSourceControl" Command="{Binding Path=DeviceOperationCommand}" DeviceData="{Binding Path=MfcSourceData}" Height="19.998" Panel.ZIndex="10" Canvas.Top="145" Canvas.Left="6" />
  37. <local:AnalogControl x:Name="MfcDiluteControl" Command="{Binding Path=DeviceOperationCommand}" DeviceData="{Binding Path=MfcDiluteData}" Height="19.998" Panel.ZIndex="10" Canvas.Top="96" Canvas.Left="4" />
  38. <!--PC-->
  39. <local:AnalogControl BackColor="Blue" Command="{Binding Path=DeviceOperationCommand}" DeviceData="{Binding Path=PcData}" Height="20" Panel.ZIndex="10" Canvas.Top="46" Canvas.Left="59" />
  40. <!--Valve-->
  41. <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=ValveBypassData}" Cursor="Hand" Canvas.Left="31" Canvas.Top="178" ValveDirection="ToRight" Width="14.8" Height="11.297" />
  42. <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=ValveLineData}" Cursor="Hand" Canvas.Left="47" Canvas.Top="188" ValveDirection="ToTop" Width="14.8" Height="11.25" />
  43. <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=ValveLineData}" Cursor="Hand" Canvas.Left="14" Canvas.Top="188" ValveDirection="ToBottom" Width="14.8" Height="11.25" />
  44. <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=VavleVacData}" Visibility="{Binding IsServiceMode, Converter={StaticResource ServiceModeConvert}}" Cursor="Hand" Canvas.Left="23" Canvas.Top="203" ValveDirection="ToRight" Width="14.8" Height="11.25" />
  45. <local:GasValve Panel.ZIndex="10" Command="{Binding Path=DeviceOperationCommand}" GasValveData="{Binding Path=VavleVacData}" Visibility="{Binding IsServiceMode, Converter={StaticResource ServiceModeConvert}}" Cursor="Hand" Canvas.Left="39" Canvas.Top="203" ValveDirection="ToLeft" Width="14.8" Height="11.25" />
  46. <Label Canvas.Left="0" Canvas.Top="237" MouseEnter="RecMOSource_MouseEnter" MouseLeave="RecMOSource_MouseLeave" Name="lblMoName" FontSize="10" Foreground="Black" Content="{Binding LineData, Converter={StaticResource MoNameConvert},UpdateSourceTrigger=PropertyChanged}" Width="73" HorizontalContentAlignment="Center"></Label>
  47. <Polygon Name="polygon1" Opacity="1" Points="0,4 0,6 14,6 14,4" Cursor="Hand" Fill="Black" Height="11" Canvas.Left="18" Canvas.Top="219" Width="4" />
  48. <Polygon Name="polygon2" Opacity="1" Points="5,0 5,14 14,14 14,0" Cursor="Hand" Fill="Black" Height="6" Canvas.Left="12" Canvas.Top="221" Width="7.25" />
  49. <Polygon Name="polygon3" Opacity="1" Points="0,4 0,6 14,6 14,4" Cursor="Hand" Fill="Black" Height="11" Canvas.Left="55" Canvas.Top="219" Width="4" />
  50. <Polygon Name="polygon4" Opacity="1" Points="5,0 5,14 14,14 14,0" Cursor="Hand" Fill="Black" Height="6" Canvas.Left="53" Canvas.Top="221" Width="7.25" />
  51. <Polygon Canvas.Left="32" Canvas.Top="211" Visibility="{Binding IsServiceMode, Converter={StaticResource ServiceModeConvert}}" Cursor="Hand" Fill="Black" Height="4" Opacity="1" Points="5,0 5,14 14,14 14,0" Width="7.25" />
  52. </Canvas>
  53. </UserControl>