VPWDegasControl.xaml 5.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <UserControl x:Class="PunkHPX8_Themes.UserControls.VPWDegasControl"
  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="150" 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:BoolToBool x:Key="boolToBool"></converters:BoolToBool>
  18. </UserControl.Resources>
  19. <Border BorderBrush="Gray">
  20. <Grid>
  21. <GroupBox Header="Booster Pump" BorderBrush="DarkGray">
  22. <Grid>
  23. <Grid.RowDefinitions>
  24. <RowDefinition Height="40"/>
  25. <RowDefinition Height="40"/>
  26. <RowDefinition Height="40"/>
  27. <RowDefinition/>
  28. </Grid.RowDefinitions>
  29. <Grid.ColumnDefinitions>
  30. <ColumnDefinition Width="180"/>
  31. <ColumnDefinition Width="30"/>
  32. <ColumnDefinition Width="80"/>
  33. <ColumnDefinition Width="80"/>
  34. <ColumnDefinition Width="30"/>
  35. <ColumnDefinition Width="60"/>
  36. <ColumnDefinition/>
  37. </Grid.ColumnDefinitions>
  38. <Grid Grid.Row="0" Grid.Column="0">
  39. <Label Content="Pump Enable" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  40. </Grid>
  41. <Grid Grid.Row="1" Grid.Column="0">
  42. <Label Content="Pump Pressure" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  43. </Grid>
  44. <Grid Grid.Row="2" Grid.Column="0">
  45. <Label Content="DIW Loop DO" FontSize="15" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,0,0,0"/>
  46. </Grid>
  47. <Grid Grid.Row="0" Grid.Column="1">
  48. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  49. Fill="{Binding PumpEnable, Converter={StaticResource boolToColor}, ElementName=self}"/>
  50. </Grid>
  51. <Grid Grid.Row="0" Grid.Column="2" >
  52. <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,0,0" Grid.Column="1" Height="25" Width="60" HorizontalAlignment="Center" Content="On" Click="PumpOn_Click"></Button>
  53. </Grid>
  54. <Grid Grid.Row="0" Grid.Column="3" >
  55. <Button Style="{StaticResource SysBtnStyle}" Margin="0,0,0,0" Grid.Column="1" Height="25" Width="60" HorizontalAlignment="Center" Content="Off" Click="PumpOff_Click"></Button>
  56. </Grid>
  57. <Grid Grid.Row="0" Grid.Column="4">
  58. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Silver"
  59. Fill="{Binding PumpEnable, Converter={StaticResource boolToColor2}, ElementName=self}"/>
  60. </Grid>
  61. <Border Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="2" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Left">
  62. <TextBlock Text="{Binding ElementName=self,Path=PumpPressure}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  63. </Border>
  64. <Border Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2" Margin="32,5,5,5" Background="Black" Height="22" Width="50" VerticalAlignment="Center" HorizontalAlignment="Left">
  65. <TextBlock Text="Kpa" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  66. </Border>
  67. <Border Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="2" Margin="5,5,5,5" Background="Black" Width="50" VerticalAlignment="Center" HorizontalAlignment="Left">
  68. <TextBlock Text="{Binding ElementName=self,Path=DiwLoopDo}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  69. </Border>
  70. <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">
  71. <TextBlock Text="ppm" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  72. </Border>
  73. </Grid>
  74. </GroupBox >
  75. </Grid>
  76. </Border >
  77. </UserControl>