<UserControl x:Class="CyberX8_Themes.UserControls.PufStationDistanceControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:CyberX8_Themes.UserControls" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> <Grid> <GroupBox Header="Distance Sensors" BorderBrush="DarkGray"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="25"></RowDefinition> <RowDefinition Height="25"></RowDefinition> <RowDefinition Height="25"></RowDefinition> <RowDefinition Height="25"></RowDefinition> <RowDefinition Height="25"></RowDefinition> <RowDefinition Height="30"></RowDefinition> <RowDefinition Height="95"></RowDefinition> <RowDefinition Height="25"></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition></ColumnDefinition> <ColumnDefinition></ColumnDefinition> </Grid.ColumnDefinitions> <Label Grid.Row="1" Grid.Column="0" Content="Distance 1" HorizontalAlignment="Center"></Label> <Label Grid.Row="1" Grid.Column="1" Content="Distance 2" HorizontalAlignment="Center"></Label> <WrapPanel Grid.Row="2" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0"> <TextBlock Width="100" Text="{Binding DistanceData.Distance1, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/> <TextBlock Margin="2,0" Width="60" Text="mm" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/> </WrapPanel> <WrapPanel Grid.Row="2" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0"> <TextBlock Width="100" Text="{Binding DistanceData.Distance2, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/> <TextBlock Margin="2,0" Width="60" Text="mm" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/> </WrapPanel> <Label Grid.Row="3" Grid.Column="0" Content="Offset 1" HorizontalAlignment="Center"></Label> <Label Grid.Row="3" Grid.Column="1" Content="Offset 2" HorizontalAlignment="Center"></Label> <WrapPanel Grid.Row="4" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0"> <TextBlock Width="100" Text="{Binding DistanceData.Offset1, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/> <TextBlock Margin="2,0" Width="60" Text="mm" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/> </WrapPanel> <WrapPanel Grid.Row="4" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0"> <TextBlock Width="100" Text="{Binding DistanceData.Offset2, StringFormat=\{0:F2\},Mode=TwoWay}" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/> <TextBlock Margin="2,0" Width="60" Text="mm" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/> </WrapPanel> <Button Grid.Row="5" Grid.Column="0" Style="{StaticResource SysBtnStyle}" Content="Calibrate" Width="120" Height="30" Click="Calibrate_Click"></Button> <TextBlock Grid.Row="6" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Left" FontSize="17" Margin="5,5" 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> </Grid> </GroupBox> </Grid> </UserControl>