WaferPresenceControl.xaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <UserControl x:Class="CyberX8_Themes.UserControls.WaferPresenceControl"
  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:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  7. xmlns:local="clr-namespace:CyberX8_Themes.UserControls" xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  8. mc:Ignorable="d" x:Name="self"
  9. d:DesignHeight="240" d:DesignWidth="400">
  10. <UserControl.Resources>
  11. <converters:BoolToBool x:Key="boolToBool"/>
  12. </UserControl.Resources>
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="30"/>
  16. <RowDefinition Height="30"/>
  17. <RowDefinition Height="30"/>
  18. <RowDefinition Height="30"/>
  19. <RowDefinition Height="30"/>
  20. <RowDefinition Height="30"/>
  21. <RowDefinition Height="30"/>
  22. <RowDefinition Height="30"/>
  23. <RowDefinition/>
  24. </Grid.RowDefinitions>
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition Width="200"/>
  27. <ColumnDefinition Width="100"/>
  28. <ColumnDefinition Width="100"/>
  29. <ColumnDefinition/>
  30. </Grid.ColumnDefinitions>
  31. <Grid Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
  32. <Border BorderBrush="Black" BorderThickness="1" Width="380" Height="26">
  33. <TextBlock Text="Poorly Placed" FontStyle="Italic" FontSize="15" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Transparent"/>
  34. </Border>
  35. </Grid>
  36. <Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">
  37. <Border BorderBrush="Black" BorderThickness="1" Width="380" Height="26" >
  38. <TextBlock Text="Well Placed" FontStyle="Italic" FontSize="15" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Transparent"/>
  39. </Border>
  40. </Grid>
  41. <Grid Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="3">
  42. <Border BorderBrush="Black" BorderThickness="1" Width="380" Height="26">
  43. <TextBlock Text="Poorly Placed" FontStyle="Italic" FontSize="15" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Transparent"/>
  44. </Border>
  45. </Grid>
  46. <Grid Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="3">
  47. <Border BorderBrush="Black" BorderThickness="1" Width="380" Height="26">
  48. <TextBlock Text="Empty" FontStyle="Italic" FontSize="15" FontWeight="Bold" VerticalAlignment="Center" HorizontalAlignment="Center" Background="Transparent"/>
  49. </Border>
  50. </Grid>
  51. <Grid Grid.Row="1" Grid.Column="0">
  52. <Label Content="Well placed Low Threshold" Margin="10,0,0,0" FontSize="13" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
  53. </Grid>
  54. <Grid Grid.Row="3" Grid.Column="0">
  55. <Label Content="Well placed High Threshold" Margin="10,0,0,0" FontSize="13" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
  56. </Grid>
  57. <Grid Grid.Row="5" Grid.Column="0">
  58. <Label Content="Empty Threshold" Margin="10,0,0,0" FontSize="13" FontWeight="Bold" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Left" />
  59. </Grid>
  60. <Control:NumbericTextBox Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="80"
  61. Height="22" Value="{Binding ElementName=self,Path=InputLowThreshold,StringFormat={}{0:F2},Mode=TwoWay}"
  62. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}" TextboxName="WellPlacedLowThreshold" Margin="20,0,0,4"/>
  63. <TextBlock Grid.Row="1" Grid.Column="2" Margin="0,0,12,0" TextAlignment="Center" VerticalAlignment="Center"
  64. Text="{Binding ElementName=self,Path=PersistentValue.WellPlacedLowThreshold,StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  65. <Control:NumbericTextBox Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" Width="80"
  66. Height="22" Value="{Binding ElementName=self,Path=InputHighThreshold,StringFormat={}{0:F2},Mode=TwoWay}"
  67. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}" TextboxName="WellPlacedHighThreshold"/>
  68. <TextBlock Grid.Row="3" Grid.Column="2" Margin="0,0,12,0" TextAlignment="Center" VerticalAlignment="Center"
  69. Text="{Binding ElementName=self,Path=PersistentValue.WellPlacedHighThreshold,StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  70. <Control:NumbericTextBox Grid.Row="5" Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Center" Width="80"
  71. Height="22" Value="{Binding ElementName=self,Path=InputEmptyThreshold,StringFormat={}{0:F2},Mode=TwoWay}"
  72. KeyOperation="{Binding ElementName=self,Path=KeyDownCommand}" TextboxName="EmptyThreshold"/>
  73. <TextBlock Grid.Row="5" Grid.Column="2" Margin="0,0,12,0" TextAlignment="Center" VerticalAlignment="Center"
  74. Text="{Binding ElementName=self,Path=PersistentValue.EmptyThreshold,StringFormat=\{0:F2\}}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  75. <CheckBox x:Name="checkbox1" Grid.Row="7" Grid.Column="0" Margin="10,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" Content="Test Without Wafers" FontSize="10" FontWeight="Bold"
  76. Checked="CheckBox_Click" Unchecked="CheckBox_Click"/>
  77. </Grid>
  78. </UserControl>