PufStationDistanceControl.xaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <UserControl x:Class="CyberX8_Themes.UserControls.PufStationDistanceControl"
  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:local="clr-namespace:CyberX8_Themes.UserControls"
  7. mc:Ignorable="d"
  8. d:DesignHeight="300" d:DesignWidth="400">
  9. <Grid>
  10. <GroupBox Header="Distance Sensors" BorderBrush="DarkGray">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="25"></RowDefinition>
  14. <RowDefinition Height="25"></RowDefinition>
  15. <RowDefinition Height="25"></RowDefinition>
  16. <RowDefinition Height="25"></RowDefinition>
  17. <RowDefinition Height="25"></RowDefinition>
  18. <RowDefinition Height="30"></RowDefinition>
  19. <RowDefinition Height="95"></RowDefinition>
  20. <RowDefinition Height="25"></RowDefinition>
  21. <RowDefinition></RowDefinition>
  22. </Grid.RowDefinitions>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition></ColumnDefinition>
  25. <ColumnDefinition></ColumnDefinition>
  26. </Grid.ColumnDefinitions>
  27. <Label Grid.Row="1" Grid.Column="0" Content="Distance 1" HorizontalAlignment="Center"></Label>
  28. <Label Grid.Row="1" Grid.Column="1" Content="Distance 2" HorizontalAlignment="Center"></Label>
  29. <WrapPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0">
  30. <TextBlock Width="100" Text="{Binding DistanceData.Distance1, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  31. <TextBlock Margin="2,0" Width="60" Text="mm" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  32. </WrapPanel>
  33. <WrapPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0">
  34. <TextBlock Width="100" Text="{Binding DistanceData.Distance2, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  35. <TextBlock Margin="2,0" Width="60" Text="mm" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  36. </WrapPanel>
  37. <Label Grid.Row="3" Grid.Column="0" Content="Offset 1" HorizontalAlignment="Center"></Label>
  38. <Label Grid.Row="3" Grid.Column="1" Content="Offset 2" HorizontalAlignment="Center"></Label>
  39. <WrapPanel Grid.Row="4" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0">
  40. <TextBlock Width="100" Text="{Binding DistanceData.Offset1, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  41. <TextBlock Margin="2,0" Width="60" Text="mm" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  42. </WrapPanel>
  43. <WrapPanel Grid.Row="4" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0">
  44. <TextBlock Width="100" Text="{Binding DistanceData.Offset2, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  45. <TextBlock Margin="2,0" Width="60" Text="mm" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  46. </WrapPanel>
  47. <Button Grid.Row="5" Grid.Column="0" Style="{StaticResource SysBtnStyle}" Content="Calibrate" Width="120" Height="30" Click="Calibrate_Click"></Button>
  48. <TextBlock Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" FontSize="17" Margin="5,5"
  49. Text="To Calibrate: Place a wafer on side A and turn on vacuum. Then press the calibrate button. When calibration updates you may turn off vacuum and remove the wafer." TextWrapping="WrapWithOverflow"></TextBlock>
  50. </Grid>
  51. </GroupBox>
  52. </Grid>
  53. </UserControl>