Simu_CometRFView.xaml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <UserControl x:Class="EfemDualSimulator.Views.Simu_CometRFView"
  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="1200">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="100"></RowDefinition>
  13. <RowDefinition Height="0"></RowDefinition>
  14. <RowDefinition Height="*"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <commons:SocketTitleView Grid.Row="0"></commons:SocketTitleView>
  17. <!--<StackPanel Grid.Row="1" Orientation="Horizontal" Width="1200">
  18. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}"></Button>
  19. <Button Content="Place" Margin="150,6,0,0" Width="100" Height="35" Command="{Binding PlaceCommand}" ></Button>
  20. <Button Content="Remove" Margin="20,6,0,0" Width="100" Height="35" Command="{Binding RemoveCommand}" ></Button>
  21. <Label Content="{Binding WaferMap}" Width="300" Height="30" HorizontalContentAlignment="Center" Background="LightBlue" BorderThickness="2" Canvas.Left="32" Canvas.Top="50"></Label>
  22. <Button Content="SetAll" Width="100" Height="35" Command="{Binding SetAllCommand}" Margin="20,6,0,0"></Button>
  23. <Button Content="Random" Width="100" Height="35" Command="{Binding RandomCommand}" Margin="20,6,0,0"></Button>
  24. <Button Content="Clear" Width="100" Height="35" Command="{Binding ClearCommand}" Margin="20,6,0,0"></Button>
  25. </StackPanel>-->
  26. <DataGrid Grid.Row="2" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
  27. ScrollViewer.CanContentScroll="True"
  28. ScrollViewer.VerticalScrollBarVisibility="Auto"
  29. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  30. Width="1200" VerticalAlignment="Top">
  31. <DataGrid.Columns>
  32. <DataGridTextColumn Header="Time" Width="200" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}" />
  33. <DataGridTextColumn Header="Incoming" Width="500" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  34. <DataGridTextColumn.ElementStyle>
  35. <Style TargetType="TextBlock">
  36. <Setter Property="TextWrapping" Value="Wrap" />
  37. <Setter Property="Height" Value="auto" />
  38. </Style>
  39. </DataGridTextColumn.ElementStyle>
  40. </DataGridTextColumn>
  41. <DataGridTextColumn Header="Outgoing" Width="500" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
  42. <DataGridTextColumn.ElementStyle>
  43. <Style TargetType="TextBlock">
  44. <Setter Property="TextWrapping" Value="Wrap" />
  45. <Setter Property="Height" Value="auto" />
  46. </Style>
  47. </DataGridTextColumn.ElementStyle>
  48. </DataGridTextColumn>
  49. </DataGrid.Columns>
  50. </DataGrid>
  51. </Grid>
  52. </UserControl>