LoaderDetectionControl.xaml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <UserControl
  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="CyberX8_Themes.UserControls"
  7. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  8. xmlns:customControls="clr-namespace:CyberX8_Themes.CustomControls"
  9. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  10. x:Class="CyberX8_Themes.UserControls.LoaderDetectionControl"
  11. mc:Ignorable="d" x:Name="self"
  12. d:DesignHeight="260" d:DesignWidth="400">
  13. <UserControl.Resources>
  14. <converters:BoolToColor x:Key="boolToColor"/>
  15. </UserControl.Resources>
  16. <Grid>
  17. <GroupBox Header="Plate Out Detection" Background="{DynamicResource Table_BD_Title}" BorderBrush="DarkGray">
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="60"/>
  21. <RowDefinition Height="30"/>
  22. <RowDefinition/>
  23. </Grid.RowDefinitions>
  24. <TextBlock Grid.Row="0" Grid.ColumnSpan="2" Text="{Binding ElementName=self,Path=Status}" TextWrapping="Wrap" Background="Black" Foreground="Lime" FontSize="16" FontWeight="Bold"/>
  25. <Label Grid.Row="1" Content="Plate Out Sequence" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  26. <Button Grid.Row="1" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="Run" Click="RunPlateOut_Click" HorizontalAlignment="Center" />
  27. <GroupBox Header="Low Level IO" Grid.Row="2">
  28. <Grid>
  29. <Grid.RowDefinitions>
  30. <RowDefinition Height="30"></RowDefinition>
  31. <RowDefinition Height="30"></RowDefinition>
  32. <RowDefinition Height="30"></RowDefinition>
  33. <RowDefinition Height="30"></RowDefinition>
  34. <RowDefinition/>
  35. </Grid.RowDefinitions>
  36. <Label Grid.Row="0" Content="Camera Trigger" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  37. <Ellipse Grid.Row="0" Width="16" Height="16" Fill="{Binding ElementName=self,Path=CameraTrigger, Converter={StaticResource boolToColor}}" Stroke="Silver" Margin="200,7,160,7"/>
  38. <Button Grid.Row="0" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="Pulse" Click="RunPlateOut_Click" HorizontalAlignment="Left" Margin="236,0,0,0" />
  39. <Button Grid.Row="0" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="On" Click="RunPlateOut_Click" HorizontalAlignment="Left" Margin="281,0,0,0" />
  40. <Button Grid.Row="0" Width="40" Height="30" Style="{StaticResource SysBtnStyle}" Content="Off" Click="RunPlateOut_Click" HorizontalAlignment="Left" Margin="326,-2,0,2" />
  41. <Label Grid.Row="1" Content="Plate Out Detected" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  42. <Ellipse Grid.Row="1" Width="16" Height="16" Fill="{Binding ElementName=self,Path=PlateOutDetected, Converter={StaticResource boolToColor}}" Stroke="Silver" Margin="200,7,160,7"/>
  43. <Label Grid.Row="2" Content="Plate Out Not Detected" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  44. <Ellipse Grid.Row="2" Width="16" Height="16" Fill="{Binding ElementName=self,Path=PlateOutNotDetected, Converter={StaticResource boolToColor}}" Stroke="Silver" Margin="200,7,160,7"/>
  45. <Label Grid.Row="3" Content="Vision System Online" VerticalAlignment="Center" Margin="2" FontSize="14" FontWeight="Bold"/>
  46. <Ellipse Grid.Row="3" Width="16" Height="16" Fill="{Binding ElementName=self,Path=VisionSystemOnline, Converter={StaticResource boolToColor}}" Stroke="Silver" Margin="200,7,160,7"/>
  47. </Grid>
  48. </GroupBox>
  49. </Grid>
  50. </GroupBox>
  51. </Grid>
  52. </UserControl>