VPWMainStateControl.xaml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <UserControl x:Class="PunkHPX8_Themes.UserControls.VPWMainStateControl"
  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:converters="clr-namespace:PunkHPX8_Themes.Converters"
  7. xmlns:UserControls="clr-namespace:PunkHPX8_Themes.UserControls"
  8. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  9. xmlns:local="clr-namespace:PunkHPX8_Themes.UserControls"
  10. mc:Ignorable="d" x:Name="self"
  11. d:DesignHeight="270" d:DesignWidth="420">
  12. <UserControl.Resources>
  13. <converters:BoolToYellowColor x:Key="boolToYellowColor"></converters:BoolToYellowColor>
  14. <converters:BoolToColor x:Key="boolToColor"></converters:BoolToColor>
  15. <converters:BoolToColor2 x:Key="boolToColor2"></converters:BoolToColor2>
  16. <converters:BoolToColor6 x:Key="boolToColor6"></converters:BoolToColor6>
  17. <converters:BoolToYellowColor2 x:Key="boolToYellowColor2"></converters:BoolToYellowColor2>
  18. <converters:BoolToBool x:Key="boolToBool"></converters:BoolToBool>
  19. </UserControl.Resources>
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="40"/>
  23. <RowDefinition Height="40"/>
  24. <RowDefinition Height="40"/>
  25. <RowDefinition Height="40"/>
  26. <RowDefinition Height="40"/>
  27. <RowDefinition Height="40"/>
  28. <RowDefinition/>
  29. </Grid.RowDefinitions>
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="180"/>
  32. <ColumnDefinition Width="30"/>
  33. <ColumnDefinition Width="80"/>
  34. <ColumnDefinition Width="80"/>
  35. <ColumnDefinition Width="30"/>
  36. <ColumnDefinition Width="60"/>
  37. <ColumnDefinition/>
  38. </Grid.ColumnDefinitions>
  39. <Grid Grid.Row="0" Grid.Column="0">
  40. <Label Content="Machine State" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  41. </Grid>
  42. <Grid Grid.Row="1" Grid.Column="0">
  43. <Label Content="Fluid In Containment" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  44. </Grid>
  45. <Grid Grid.Row="2" Grid.Column="0">
  46. <Label Content="Water Pressure" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  47. </Grid>
  48. <Grid Grid.Row="3" Grid.Column="0">
  49. <Label Content="Pressure Target" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  50. </Grid>
  51. <Grid Grid.Row="4" Grid.Column="0">
  52. <Label Content="DIW Inlet Valve" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  53. </Grid>
  54. <Grid Grid.Row="5" Grid.Column="0">
  55. <Label Content="Chamber" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  56. </Grid>
  57. <Grid Grid.Row="1" Grid.Column="1">
  58. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  59. Fill="{Binding FluidInContainment, Converter={StaticResource boolToYellowColor2}, ElementName=self}"/>
  60. </Grid>
  61. <Grid Grid.Row="4" Grid.Column="1">
  62. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  63. Fill="{Binding DIWInletValveOpen, Converter={StaticResource boolToColor}, ElementName=self}"/>
  64. </Grid>
  65. <Grid Grid.Row="4" Grid.Column="2" >
  66. <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,0,0" Grid.Column="1" Height="25" Width="60" HorizontalAlignment="Center" Content="Open" Click="DIWInletValveOpen_Click"></Button>
  67. </Grid>
  68. <Grid Grid.Row="4" Grid.Column="3" >
  69. <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,0,0" Grid.Column="1" Height="25" Width="60" HorizontalAlignment="Center" Content="Close" Click="DIWInletValveClose_Click"></Button>
  70. </Grid>
  71. <Grid Grid.Row="4" Grid.Column="4">
  72. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  73. Fill="{Binding DIWInletValveOpen, Converter={StaticResource boolToColor2}, ElementName=self}"/>
  74. </Grid>
  75. <Grid Grid.Row="5" Grid.Column="1">
  76. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  77. Fill="{Binding ChamberClose, Converter={StaticResource boolToColor}, ElementName=self}"/>
  78. </Grid>
  79. <Grid Grid.Row="5" Grid.Column="2" >
  80. <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,0,0" Grid.Column="1" Height="25" Width="60" HorizontalAlignment="Center" Content="Open" Click="ChamberOpen_Click"></Button>
  81. </Grid>
  82. <Grid Grid.Row="5" Grid.Column="3" >
  83. <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,0,0" Grid.Column="1" Height="25" Width="60" HorizontalAlignment="Center" Content="Close" Click="ChamberClose_Click"></Button>
  84. </Grid>
  85. <Grid Grid.Row="5" Grid.Column="4">
  86. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  87. Fill="{Binding ChamberOpen, Converter={StaticResource boolToColor}, ElementName=self}"/>
  88. </Grid>
  89. <Border Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="4" Margin="5,5,5,5" Background="Black">
  90. <TextBlock Text="{Binding ElementName=self,Path=MachineState}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  91. </Border>
  92. <Border Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Left">
  93. <TextBlock Text="{Binding ElementName=self,Path=WaterPressure}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  94. </Border>
  95. <Border Grid.Row="2" Grid.Column="2" Grid.ColumnSpan="2" Margin="32,5,5,5" Background="Black" Height="22" Width="50" VerticalAlignment="Center" HorizontalAlignment="Left">
  96. <TextBlock Text="Psi" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  97. </Border>
  98. <Border Grid.Row="3" Grid.Column="1" Grid.ColumnSpan="2" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Left">
  99. <TextBlock Text="{Binding ElementName=self,Path=PressureTarget}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  100. </Border>
  101. <Border Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="2" Margin="32,5,5,5" Background="Black" Height="22" Width="50" VerticalAlignment="Center" HorizontalAlignment="Left">
  102. <TextBlock Text="Psi" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  103. </Border>
  104. </Grid>
  105. </UserControl>