Simu_SunWayEfemView.xaml 6.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <UserControl x:Class="CyberX8_Simulator.Views.Simu_SunWayEfemView"
  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:CyberX8_Simulator.Views"
  7. xmlns:commons="clr-namespace:MECF.Framework.Simulator.Core.Commons;assembly=MECF.Framework.Simulator.Core"
  8. mc:Ignorable="d"
  9. d:DesignHeight="900" d:DesignWidth="1500">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="100"></RowDefinition>
  13. <RowDefinition Height="150"></RowDefinition>
  14. <RowDefinition Height="*"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <commons:SocketTitleView Grid.Row="0"></commons:SocketTitleView>
  17. <Canvas Grid.Row="1" Width="1200">
  18. <StackPanel Grid.Row="1" Orientation="Horizontal" Width="1200">
  19. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}"></Button>
  20. <CheckBox Content="Maintain" IsChecked="{Binding Maintain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="125" Height="35" />
  21. <CheckBox Content="Protrude1" IsChecked="{Binding Protrude1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="125" Height="35" />
  22. <CheckBox Content="Protrude2" IsChecked="{Binding Protrude2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="125" Height="35" />
  23. <CheckBox Content="DoorOpen1" IsChecked="{Binding DoorOpen, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="125" Height="35" />
  24. <CheckBox Content="DoorOpen2" IsChecked="{Binding DoorOpen2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="125" Height="35" />
  25. <CheckBox Content="DoorOpen3" IsChecked="{Binding DoorOpen3, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="125" Height="35" />
  26. <CheckBox Content="VAC" IsChecked="{Binding VAC,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="125" Height="35"/>
  27. <CheckBox Content="AIR" IsChecked="{Binding AIR,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="125" Height="35"/>
  28. </StackPanel>
  29. <StackPanel Grid.Row="1" Orientation="Horizontal" Width="1300" Canvas.Top="50">
  30. <Button Content="Place1" Margin="10,6,0,0" Width="100" Height="35" Command="{Binding Place1Command}" ></Button>
  31. <Button Content="Remove1" Margin="20,6,0,0" Width="100" Height="35" Command="{Binding Remove1Command}" ></Button>
  32. <Button Content="Place2" Margin="20,6,0,0" Width="100" Height="35" Command="{Binding Place2Command}" ></Button>
  33. <Button Content="Remove2" Margin="20,6,0,0" Width="100" Height="35" Command="{Binding Remove2Command}" ></Button>
  34. <Button Content="Place3" Margin="20,6,0,0" Width="100" Height="35" Command="{Binding Place3Command}" ></Button>
  35. <Button Content="Remove3" Margin="20,6,0,0" Width="100" Height="35" Command="{Binding Remove3Command}" ></Button>
  36. <Button Content="SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}" Margin="20,6,0,0"></Button>
  37. <Button Content="Random" Width="100" Height="35" Command="{Binding RandomCommand}" Margin="20,6,0,0"></Button>
  38. <Button Content="RandomDummy" Width="150" Height="35" Command="{Binding RandomDummyCommand}" Margin="20,6,0,0"></Button>
  39. <Button Content="Clear" Width="100" Height="35" Command="{Binding ClearCommand}" Margin="20,6,0,0"></Button>
  40. </StackPanel >
  41. <StackPanel Grid.Row="1" Orientation="Horizontal" Width="500" Canvas.Top="49" HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.Left="350" >
  42. <ComboBox Width="100" Height="26" ItemsSource="{Binding WaferSizeItems}" SelectedItem="{Binding SelectedWaferSize}" ></ComboBox>
  43. <Label Content="{Binding WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Margin="10,60"/>
  44. </StackPanel>
  45. </Canvas>
  46. <DataGrid Grid.Row="2" 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="1200" VerticalAlignment="Top">
  51. <DataGrid.Columns>
  52. <DataGridTextColumn Header="Time" Width="200" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}" />
  53. <DataGridTextColumn Header="Incoming" Width="500" 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="500" 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>