BrooksMag7RobotTesterView.xaml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <UserControl x:Class="MECF.Framework.Simulator.Core.Robots.BrooksMag7RobotTesterView"
  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:MECF.Framework.Simulator.Core.Robots"
  7. xmlns:deviceControl="clr-namespace:MECF.Framework.UI.Core.DeviceControl;assembly=MECF.Framework.UI.Core"
  8. Height="920" Width="1920">
  9. <StackPanel>
  10. <Label Content="{Binding Title}" FontSize="20" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" Background="LightBlue" Height="50"></Label>
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="1000"></ColumnDefinition>
  14. <ColumnDefinition Width="300"></ColumnDefinition>
  15. </Grid.ColumnDefinitions>
  16. <StackPanel Orientation="Vertical" Grid.Column="0" Height="900">
  17. <Button Content="Clear Log" Width="100" Height="35" HorizontalAlignment="Left" Command="{Binding ClearLogCommand}"></Button>
  18. <DataGrid Height="823" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}" >
  19. <DataGrid.Columns>
  20. <DataGridTextColumn Header="Time" Width="90" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
  21. <DataGridTextColumn Header="Incoming" Width="180" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  22. <DataGridTextColumn.ElementStyle>
  23. <Style TargetType="TextBlock">
  24. <Setter Property="TextWrapping" Value="Wrap"/>
  25. <Setter Property="Height" Value="auto"/>
  26. </Style>
  27. </DataGridTextColumn.ElementStyle>
  28. </DataGridTextColumn>
  29. <DataGridTextColumn Header="Outgoing" Width="180" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
  30. <DataGridTextColumn.ElementStyle>
  31. <Style TargetType="TextBlock">
  32. <Setter Property="TextWrapping" Value="Wrap"/>
  33. <Setter Property="Height" Value="auto"/>
  34. </Style>
  35. </DataGridTextColumn.ElementStyle>
  36. </DataGridTextColumn>
  37. </DataGrid.Columns>
  38. </DataGrid>
  39. </StackPanel>
  40. <Grid Grid.Column="1" Height="900">
  41. <Grid.RowDefinitions>
  42. <RowDefinition Height="50"></RowDefinition>
  43. <RowDefinition Height="300"></RowDefinition>
  44. <RowDefinition Height="550"></RowDefinition>
  45. </Grid.RowDefinitions>
  46. <StackPanel Grid.Row="0" Orientation="Horizontal" >
  47. <Button Width="100" Height="35" Content="Enable" Command="{Binding EnableCommand}" IsEnabled="{Binding IsEnableEnable}"></Button>
  48. <Button Width="100" Height="35" Content="Disable" Command="{Binding DisableCommand}" IsEnabled="{Binding IsEnableDisable}"></Button>
  49. </StackPanel>
  50. <Canvas Grid.Row="1" Height="300">
  51. <deviceControl:ModuleControl Width="80" Height="60" ModuleName="PM1" HasWafer="False" Canvas.Top="89"></deviceControl:ModuleControl>
  52. <deviceControl:ModuleControl Width="80" Height="60" ModuleName="PM2" HasWafer="False" Canvas.Left="61" Canvas.Top="24"></deviceControl:ModuleControl>
  53. <deviceControl:ModuleControl Width="80" Height="60" ModuleName="PM3" HasWafer="False" Canvas.Left="165" Canvas.Top="24"></deviceControl:ModuleControl>
  54. <deviceControl:ModuleControl Width="80" Height="60" ModuleName="PM4" HasWafer="False" Canvas.Left="198" Canvas.Top="89"></deviceControl:ModuleControl>
  55. <deviceControl:ModuleControl Width="102" Height="112" ModuleName="TM" HasWafer="False" Canvas.Left="96" Canvas.Top="89"></deviceControl:ModuleControl>
  56. <deviceControl:ModuleControl Width="59" Height="44" ModuleName="LL1" HasWafer="False" Canvas.Left="70" Canvas.Top="226"></deviceControl:ModuleControl>
  57. <deviceControl:ModuleControl Width="55" Height="45" ModuleName="LL2" HasWafer="False" Canvas.Left="165" Canvas.Top="226" RenderTransformOrigin="0.649,0.618"></deviceControl:ModuleControl>
  58. <deviceControl:ModuleControl Width="59" Height="39" ModuleName="Aligner1" HasWafer="False" Canvas.Left="21" Canvas.Top="182"></deviceControl:ModuleControl>
  59. <deviceControl:ModuleControl Width="57" Height="39" ModuleName="Aligner2" HasWafer="False" Canvas.Left="212" Canvas.Top="178"></deviceControl:ModuleControl>
  60. </Canvas>
  61. <Grid Grid.Row="2" >
  62. <StackPanel >
  63. <Button Width="100" Height="35" Content="Home" Command="{Binding HomeCommand}" IsEnabled="{Binding IsEnableDisable}"></Button>
  64. <Button Width="100" Height="35" Content="Pick" Command="{Binding PickCommand}" IsEnabled="{Binding IsEnableDisable}"></Button>
  65. <Button Width="100" Height="35" Content="Place" Command="{Binding PlaceCommand}" IsEnabled="{Binding IsEnableDisable}"></Button>
  66. </StackPanel>
  67. </Grid>
  68. </Grid>
  69. </Grid>
  70. </StackPanel>
  71. </UserControl>