Dage4300View.xaml 5.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <UserControl x:Class="MECF.Framework.Simulator.Core.LoadPorts.Dage4300View"
  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.Aligners"
  7. xmlns:deviceControl="clr-namespace:MECF.Framework.UI.Core.DeviceControl;assembly=MECF.Framework.UI.Core"
  8. xmlns:commons="clr-namespace:MECF.Framework.Simulator.Core.Commons"
  9. Height="900" Width="900">
  10. <UserControl.Resources>
  11. <DataTemplate x:Key="DataTemplate1">
  12. <StackPanel Orientation="Horizontal" Width="200" Height="15">
  13. <TextBox Text="{Binding Index}"></TextBox>
  14. <TextBox Text="{Binding State}"></TextBox>
  15. <Button Content="{Binding State}" Margin="0" Width="100" Height="15" Background="LightBlue" VerticalAlignment="Center"></Button>
  16. <TextBox Text="{Binding Index}"></TextBox>
  17. </StackPanel>
  18. </DataTemplate>
  19. </UserControl.Resources>
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="100"></RowDefinition>
  23. <RowDefinition Height="350"></RowDefinition>
  24. <RowDefinition Height="50"></RowDefinition>
  25. <RowDefinition Height="400"></RowDefinition>
  26. </Grid.RowDefinitions>
  27. <commons:SerialPortTitleView Grid.Row="0"></commons:SerialPortTitleView>
  28. <Canvas Grid.Row="1" Height="350" Width="900">
  29. <Label Content="{Binding WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="32" Canvas.Top="50"></Label>
  30. <Label Content="InfoPad Status" Width="161" Height="30" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Left="32" Canvas.Top="197"></Label>
  31. <Label Content="{Binding InfoPadStatus}" Width="82" Height="41" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="198" Canvas.Top="194"></Label>
  32. <TextBox Text="{Binding InfoPadSet}" IsReadOnly ="False" Width="69" Height="38" Margin="0" RenderTransformOrigin="0.471,-0.188" Canvas.Left="285" Canvas.Top="198"></TextBox>
  33. <Button Content="SetInfoPad" Width="138" Height="42" Command="{Binding SetInfoPadCommand}"
  34. Canvas.Left="400" Margin="0" Canvas.Top="194" ></Button>
  35. <Button Content="Place" Width="100" Height="35" Command="{Binding PlaceCommand}" Canvas.Left="10" Margin="0" Canvas.Top="136"></Button>
  36. <Button Content="Remove" Width="100" Height="35" Command="{Binding RemoveCommand}" Canvas.Left="141" Margin="0" Canvas.Top="136"></Button>
  37. <ItemsControl Width="300" Height="300" Background="LightGray" Canvas.Left="576" ItemsSource="{Binding WaferList}" ItemTemplate="{DynamicResource DataTemplate1}" >
  38. </ItemsControl>
  39. <Button Content="SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}" Canvas.Left="513" Margin="0" Canvas.Top="305"></Button>
  40. <Button Content="Random" Width="100" Height="35" Command="{Binding RandomCommand}" Canvas.Left="646" Margin="0" Canvas.Top="305"></Button>
  41. <Button Content="Clear" Width="100" Height="35" Command="{Binding ClearCommand}" Canvas.Left="766" Margin="0" Canvas.Top="305"></Button>
  42. </Canvas>
  43. <StackPanel Grid.Row="2" Orientation="Horizontal" Width="900">
  44. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}"></Button>
  45. </StackPanel>
  46. <DataGrid Grid.Row="3" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
  47. ScrollViewer.CanContentScroll="True"
  48. ScrollViewer.VerticalScrollBarVisibility="Auto"
  49. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  50. Width="900" Height="380" VerticalAlignment="Top">
  51. <DataGrid.Columns>
  52. <DataGridTextColumn Header="Time" Width="160" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
  53. <DataGridTextColumn Header="Incoming" Width="350" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  54. <DataGridTextColumn.ElementStyle>
  55. <Style TargetType="TextBlock">
  56. <Setter Property="TextWrapping" Value="Wrap"/>
  57. <Setter Property="Height" Value="auto"/>
  58. </Style>
  59. </DataGridTextColumn.ElementStyle>
  60. </DataGridTextColumn>
  61. <DataGridTextColumn Header="Outgoing" Width="350" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
  62. <DataGridTextColumn.ElementStyle>
  63. <Style TargetType="TextBlock">
  64. <Setter Property="TextWrapping" Value="Wrap"/>
  65. <Setter Property="Height" Value="auto"/>
  66. </Style>
  67. </DataGridTextColumn.ElementStyle>
  68. </DataGridTextColumn>
  69. </DataGrid.Columns>
  70. </DataGrid>
  71. </Grid>
  72. </UserControl>