Simu_EfemView.xaml 5.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <UserControl x:Class="EfemDualSimulator.Views.Simu_EfemView"
  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:EfemDualSimulator.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="Cassette Door Open" IsChecked="{Binding DoorOpen, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="150" Height="35" />
  21. <CheckBox Content="Maintain" IsChecked="{Binding Maintain, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="150" Height="35" />
  22. <CheckBox Content="Protrude1" IsChecked="{Binding Protrude1, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="150" Height="35" />
  23. <CheckBox Content="Protrude2" IsChecked="{Binding Protrude2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Margin="10,10,0,4" Width="150" Height="35" />
  24. </StackPanel>
  25. <StackPanel Grid.Row="1" Orientation="Horizontal" Width="1300" Canvas.Top="50">
  26. <Button Content="Place1" Margin="10,6,0,0" Width="100" Height="35" Command="{Binding Place1Command}" ></Button>
  27. <Button Content="Remove1" Margin="20,6,0,0" Width="100" Height="35" Command="{Binding Remove1Command}" ></Button>
  28. <Button Content="Place2" Margin="20,6,0,0" Width="100" Height="35" Command="{Binding Place2Command}" ></Button>
  29. <Button Content="Remove2" Margin="20,6,0,0" Width="100" Height="35" Command="{Binding Remove2Command}" ></Button>
  30. <ComboBox Width="100" Height="26" ItemsSource="{Binding WaferSizeItems}" SelectedItem="{Binding SelectedWaferSize}" ></ComboBox>
  31. <Label Content="{Binding WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Margin="10,60"/>
  32. <Button Content="SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}" Margin="20,6,0,0"></Button>
  33. <Button Content="Random" Width="100" Height="35" Command="{Binding RandomCommand}" Margin="20,6,0,0"></Button>
  34. <Button Content="Clear" Width="100" Height="35" Command="{Binding ClearCommand}" Margin="20,6,0,0"></Button>
  35. </StackPanel>
  36. </Canvas>
  37. <DataGrid Grid.Row="2" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
  38. ScrollViewer.CanContentScroll="True"
  39. ScrollViewer.VerticalScrollBarVisibility="Auto"
  40. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  41. Width="1200" VerticalAlignment="Top">
  42. <DataGrid.Columns>
  43. <DataGridTextColumn Header="Time" Width="200" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}" />
  44. <DataGridTextColumn Header="Incoming" Width="500" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  45. <DataGridTextColumn.ElementStyle>
  46. <Style TargetType="TextBlock">
  47. <Setter Property="TextWrapping" Value="Wrap" />
  48. <Setter Property="Height" Value="auto" />
  49. </Style>
  50. </DataGridTextColumn.ElementStyle>
  51. </DataGridTextColumn>
  52. <DataGridTextColumn Header="Outgoing" Width="500" IsReadOnly="True" Binding="{Binding Outgoing, 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. </DataGrid.Columns>
  61. </DataGrid>
  62. </Grid>
  63. </UserControl>