SRDLeftInformation.xaml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <UserControl x:Class="CyberX8_Themes.UserControls.SRDLeftInformation"
  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:CyberX8_Themes.Converters"
  7. xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
  8. mc:Ignorable="d" x:Name="self"
  9. d:DesignHeight="240" d:DesignWidth="500">
  10. <UserControl.Resources>
  11. <converters:BoolToColor x:Key="boolToColor"/>
  12. <converters:BoolToYellowColor x:Key="boolToYellowColor"/>
  13. </UserControl.Resources>
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="40"/>
  17. <RowDefinition Height="40"/>
  18. <RowDefinition Height="40"/>
  19. <RowDefinition Height="40"/>
  20. <RowDefinition Height="40"/>
  21. <RowDefinition Height="40"/>
  22. </Grid.RowDefinitions>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="130"/>
  25. <ColumnDefinition Width="0"/>
  26. <ColumnDefinition Width="70"/>
  27. <ColumnDefinition Width="300"/>
  28. <ColumnDefinition/>
  29. </Grid.ColumnDefinitions>
  30. <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
  31. <Label Grid.Row="0" Content="State Machine" FontSize="16" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  32. </Grid>
  33. <Grid Grid.Row="1" Grid.ColumnSpan="4">
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition Width="150"/>
  36. <ColumnDefinition/>
  37. <ColumnDefinition Width="200"/>
  38. <ColumnDefinition/>
  39. </Grid.ColumnDefinitions>
  40. <Grid Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3">
  41. <Label Grid.Row="0" Content="Wafer Present" FontSize="16" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  42. </Grid>
  43. <Grid Grid.Row="0" Grid.Column="1">
  44. <Ellipse Grid.Column="1" Width="16" Height="16" HorizontalAlignment="Left" VerticalAlignment="Center" Stroke="Silver"
  45. Fill="{Binding CommonData.WaferPresent, Converter={StaticResource boolToColor}, ElementName=self}" />
  46. </Grid>
  47. <Grid Grid.Row="1" Grid.Column="2">
  48. <Label Grid.Row="0" Content="Fluid In Containment" FontSize="16" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  49. </Grid>
  50. <Ellipse Grid.Column="3" Width="16" Height="16" HorizontalAlignment="Left" VerticalAlignment="Center" Stroke="Silver"
  51. Fill="{Binding CommonData.FluidContainment, Converter={StaticResource boolToYellowColor}, ElementName=self}" />
  52. </Grid>
  53. <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
  54. <Label Grid.Row="0" Content="Water Pressure" FontSize="16" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  55. </Grid>
  56. <Grid Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="3">
  57. <Label Grid.Row="0" Content="Water Flow" FontSize="16" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  58. </Grid>
  59. <Grid Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3">
  60. <Label Grid.Row="0" Content="Chuck Vacuum" FontSize="16" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  61. </Grid>
  62. <Border Grid.Row="0" Grid.Column="3" Margin="5,5,15,5" Background="Black">
  63. <TextBlock Text="{Binding ElementName=self, Path=StateMachine}" Foreground="Lime" FontSize="16" FontWeight="Bold" VerticalAlignment="Center"/>
  64. </Border>
  65. <Grid Grid.Column ="3" Grid.Row="2">
  66. <Grid.ColumnDefinitions>
  67. <ColumnDefinition Width="130"></ColumnDefinition>
  68. <ColumnDefinition Width="72"></ColumnDefinition>
  69. </Grid.ColumnDefinitions>
  70. <Border Grid.Column="0" Margin="5,5,2,5" Background="Black">
  71. <TextBlock Text="{Binding CommonData.WaterPressure, ElementName=self, StringFormat=\{0:F2\}}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  72. </Border>
  73. <Border Grid.Column="1" Margin="2,5,5,5" Background="Black">
  74. <TextBlock Text="psi" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  75. </Border>
  76. </Grid>
  77. <Grid Grid.Column ="3" Grid.Row="3">
  78. <Grid.ColumnDefinitions>
  79. <ColumnDefinition Width="130"></ColumnDefinition>
  80. <ColumnDefinition Width="72"></ColumnDefinition>
  81. </Grid.ColumnDefinitions>
  82. <Border Grid.Column="0" Margin="5,5,2,5" Background="Black">
  83. <TextBlock Text="{Binding CommonData.WaterFlow, ElementName=self, StringFormat=\{0:F2\}}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  84. </Border>
  85. <Border Grid.Column="1" Margin="2,5,5,5" Background="Black">
  86. <TextBlock Text="L/min" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  87. </Border>
  88. </Grid>
  89. <Grid Grid.Column ="3" Grid.Row="4">
  90. <Grid.ColumnDefinitions>
  91. <ColumnDefinition Width="130"></ColumnDefinition>
  92. <ColumnDefinition Width="72"></ColumnDefinition>
  93. </Grid.ColumnDefinitions>
  94. <Border Grid.Column="0" Margin="5,5,2,5" Background="Black">
  95. <TextBlock Text="{Binding CommonData.VacuumValue, ElementName=self, StringFormat=\{0:F2\}}" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  96. </Border>
  97. <Border Grid.Column="1" Margin="2,5,5,5" Background="Black">
  98. <TextBlock Text="mmH" Foreground="Lime" FontSize="16" FontWeight="Bold" HorizontalAlignment="Left" VerticalAlignment="Center"/>
  99. </Border>
  100. </Grid>
  101. <Grid Grid.Row="5" Grid.Column="0" Grid.ColumnSpan="3">
  102. <Label Grid.Row="0" Content="Chuck Vacuum OK" FontSize="16" VerticalContentAlignment="Center" HorizontalContentAlignment="Left" VerticalAlignment="Center" HorizontalAlignment="Left"/>
  103. </Grid>
  104. <Grid Grid.Row="5" Grid.Column="3">
  105. <Grid.RowDefinitions>
  106. <RowDefinition/>
  107. <RowDefinition/>
  108. </Grid.RowDefinitions>
  109. <Ellipse Width="16" Height="16" HorizontalAlignment="Left" VerticalAlignment="Top" Stroke="Silver"
  110. Fill="{Binding CommonData.ChuckVacuumOK, Converter={StaticResource boolToColor}, ElementName=self}" Margin="-20,10,0,0" Grid.RowSpan="2" RenderTransformOrigin="0.312,1.25" />
  111. </Grid>
  112. </Grid>
  113. </UserControl>