LoaderWaferHolderFlowControl.xaml 7.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <UserControl x:Class="CyberX8_Themes.UserControls.LoaderWaferHolderFlowControl"
  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:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
  8. xmlns:local="clr-namespace:CyberX8_Themes.UserControls"
  9. mc:Ignorable="d" Name="self"
  10. d:DesignHeight="340" d:DesignWidth="400">
  11. <UserControl.Resources>
  12. <converters:BoolToColor x:Key="boolToColor"/>
  13. </UserControl.Resources>
  14. <Grid>
  15. <GroupBox Header="Wafer Shuttle Flow Test" Background="{DynamicResource Table_BD_Title}" BorderBrush="DarkGray">
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="30"></RowDefinition>
  19. <RowDefinition Height="30"></RowDefinition>
  20. <RowDefinition Height="30"></RowDefinition>
  21. <RowDefinition Height="30"></RowDefinition>
  22. <RowDefinition Height="30"></RowDefinition>
  23. <RowDefinition Height="30"></RowDefinition>
  24. <RowDefinition Height="160"></RowDefinition>
  25. <RowDefinition/>
  26. </Grid.RowDefinitions>
  27. <Grid.ColumnDefinitions>
  28. <ColumnDefinition Width="150"></ColumnDefinition>
  29. <ColumnDefinition Width="200"></ColumnDefinition>
  30. <ColumnDefinition/>
  31. </Grid.ColumnDefinitions>
  32. <Label Grid.Row="0" Grid.Column="0" Content="Flow" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  33. <WrapPanel Grid.Row="0" Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
  34. <TextBlock Width="80" Text="{Binding ElementName=self,Path=LeakFlow, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  35. <TextBlock Width="59" Text="sccm" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold" Margin="2,0,0,0"/>
  36. </WrapPanel>
  37. <Label Grid.Row="1" Grid.Column="0" Content="Vacuum" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  38. <WrapPanel Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Margin="0,0,5,0">
  39. <TextBlock Width="80" Text="{Binding ElementName=self,Path=LeakVacuumValue, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  40. <TextBlock Width="58" Text="mmHg" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold" Margin="2,0,0,0"/>
  41. </WrapPanel>
  42. <Label Grid.Row="2" Grid.Column="0" Content="Flow Clamp" VerticalAlignment="Center" Margin="2,0,50,0" FontSize="14" FontWeight="Bold"/>
  43. <Ellipse Grid.Row="2" Grid.Column="0" Width="16" Height="16" Fill="{Binding LeakFlowClamp, Converter={StaticResource boolToColor}, ElementName=self}" Stroke="Silver" Margin="124,7,0,7" HorizontalAlignment="Left"/>
  44. <Button Grid.Row="2" Grid.Column="1" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="On" Click="FlowClampOn_Click" HorizontalAlignment="Left" />
  45. <Button Grid.Row="2" Grid.Column="1" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="Off" Click="FlowClampOff_Click" HorizontalAlignment="Left" Margin="96,0,0,0" />
  46. <Label Grid.Row="3" Grid.Column="0" Content="Vacuum" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  47. <Ellipse Grid.Row="3" Grid.Column="0" Width="16" Height="16" Fill="{Binding LeakVacuum, Converter={StaticResource boolToColor}, ElementName=self}" HorizontalAlignment="Left" Stroke="Silver" Margin="124,7,0,7"/>
  48. <Button Grid.Row="3" Grid.Column="1" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="On" Click="VacuumOn_Click" HorizontalAlignment="Left" />
  49. <Button Grid.Row="3" Grid.Column="1" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="Off" Click="VacuumOff_Click" HorizontalAlignment="Left" Margin="96,0,0,0" />
  50. <Label Grid.Row="4" Grid.Column="0" Content="Flow Test" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  51. <Button Grid.Row="4" Grid.Column="1" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="Start" IsEnabled="{Binding ElementName=self,Path=IsFlowStartEnabled}" Click="StartFlow_Click" HorizontalAlignment="Left" />
  52. <Button Grid.Row="4" Grid.Column="1" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="Stop" IsEnabled="{Binding ElementName=self,Path=IsFlowStopEnabled}" Click="StopFlow_Click" HorizontalAlignment="Left" Margin="96,0,0,0" />
  53. <Label Grid.Row="5" Grid.Column="0" Content="Status" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  54. <TextBlock Grid.Row="5" Width="80" VerticalAlignment="Center" Text="{Binding LeakStatus, ElementName=self, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="14" FontWeight="Bold" Margin="60,0,10,0"/>
  55. <Label Grid.Row="5" Grid.Column="1" Content="Major" VerticalAlignment="Center" Margin="2,0,104,0" FontSize="14" FontWeight="Bold"/>
  56. <TextBlock Grid.Row="5" Grid.Column="1" VerticalAlignment="Center" Text="{Binding LeakMajor, ElementName=self, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="14" FontWeight="Bold" Margin="56,0,100,0"/>
  57. <Label Grid.Row="5" Grid.Column="1" Content="Minor" VerticalAlignment="Center" Margin="96,0,10,0" FontSize="14" FontWeight="Bold"/>
  58. <TextBlock Grid.Row="5" Grid.Column="1" VerticalAlignment="Center" Grid.ColumnSpan="2" Text="{Binding LeakMinor, ElementName=self, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="14" FontWeight="Bold" Margin="150,0,25,0"/>
  59. <Grid Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="3">
  60. <lvc:CartesianChart LegendLocation="Top" Hoverable="True" Height="130">
  61. <lvc:CartesianChart.Series>
  62. <lvc:LineSeries Title="Flow" Width="1" Values="{Binding ValueSeries,Mode=TwoWay}" LineSmoothness="1" DataLabels="True"/>
  63. </lvc:CartesianChart.Series>
  64. <lvc:CartesianChart.AxisX>
  65. <lvc:Axis LabelsRotation="0" Labels="{Binding LabelSeries}" FontSize="15" Foreground="Black">
  66. <lvc:Axis.Separator>
  67. <lvc:Separator Step="1"/>
  68. </lvc:Axis.Separator>
  69. </lvc:Axis>
  70. </lvc:CartesianChart.AxisX>
  71. </lvc:CartesianChart>
  72. </Grid>
  73. </Grid>
  74. </GroupBox>
  75. </Grid>
  76. </UserControl>