FAClientView.xaml 5.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <UserControl x:Class="MECF.Framework.Simulator.Core.LoadPorts.FAClientView"
  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="EVT" Width="78" Height="33" HorizontalContentAlignment="Center" Background="Transparent" BorderThickness="2" Canvas.Left="32" Canvas.Top="194"></Label>
  31. <TextBox Text="{Binding InfoPadSet,Mode=OneWayToSource}" IsReadOnly ="False" Width="229" Height="38" Margin="0" RenderTransformOrigin="0.471,-0.188" Canvas.Left="141" Canvas.Top="198"></TextBox>
  32. <Button Content="SendEvent" Width="138" Height="42" Command="{Binding SetInfoPadCommand}"
  33. Canvas.Left="400" Margin="0" Canvas.Top="194" ></Button>
  34. <Button Content="Open Port" Width="100" Height="35" Command="{Binding PlaceCommand}" Canvas.Left="10" Margin="0" Canvas.Top="136"></Button>
  35. <Button Content="Close Port" Width="100" Height="35" Command="{Binding RemoveCommand}" Canvas.Left="141" Margin="0" Canvas.Top="136"></Button>
  36. <ItemsControl Width="300" Height="300" Background="LightGray" Canvas.Left="576" ItemsSource="{Binding WaferList}" ItemTemplate="{DynamicResource DataTemplate1}" >
  37. </ItemsControl>
  38. <Button Content="SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}" Canvas.Left="513" Margin="0" Canvas.Top="305"></Button>
  39. <Button Content="Random" Width="100" Height="35" Command="{Binding RandomCommand}" Canvas.Left="646" Margin="0" Canvas.Top="305"></Button>
  40. <Button Content="Clear" Width="100" Height="35" Command="{Binding ClearCommand}" Canvas.Left="766" Margin="0" Canvas.Top="305"></Button>
  41. </Canvas>
  42. <StackPanel Grid.Row="2" Orientation="Horizontal" Width="900">
  43. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}"></Button>
  44. </StackPanel>
  45. <DataGrid Grid.Row="3" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
  46. ScrollViewer.CanContentScroll="True"
  47. ScrollViewer.VerticalScrollBarVisibility="Auto"
  48. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  49. Width="900" Height="380" VerticalAlignment="Top">
  50. <DataGrid.Columns>
  51. <DataGridTextColumn Header="Time" Width="160" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
  52. <DataGridTextColumn Header="Incoming" Width="350" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  53. <DataGridTextColumn.ElementStyle>
  54. <Style TargetType="TextBlock">
  55. <Setter Property="TextWrapping" Value="Wrap"/>
  56. <Setter Property="Height" Value="auto"/>
  57. </Style>
  58. </DataGridTextColumn.ElementStyle>
  59. </DataGridTextColumn>
  60. <DataGridTextColumn Header="Outgoing" Width="350" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
  61. <DataGridTextColumn.ElementStyle>
  62. <Style TargetType="TextBlock">
  63. <Setter Property="TextWrapping" Value="Wrap"/>
  64. <Setter Property="Height" Value="auto"/>
  65. </Style>
  66. </DataGridTextColumn.ElementStyle>
  67. </DataGridTextColumn>
  68. </DataGrid.Columns>
  69. </DataGrid>
  70. </Grid>
  71. </UserControl>