YaskawaAlignerView.xaml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <UserControl x:Class="MECF.Framework.Simulator.Core.Aligners.YaskawaAlignerView"
  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. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="100"></RowDefinition>
  13. <RowDefinition Height="350"></RowDefinition>
  14. <RowDefinition Height="50"></RowDefinition>
  15. <RowDefinition Height="400"></RowDefinition>
  16. </Grid.RowDefinitions>
  17. <commons:SocketTitleView Grid.Row="0"></commons:SocketTitleView>
  18. <Grid Grid.Row="1" Height="350" Width="900">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="300"></RowDefinition>
  21. <RowDefinition Height="50"></RowDefinition>
  22. </Grid.RowDefinitions>
  23. </Grid>
  24. <StackPanel Grid.Row="2" Orientation="Horizontal" Width="900">
  25. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}"></Button>
  26. </StackPanel>
  27. <DataGrid Grid.Row="3" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
  28. ScrollViewer.CanContentScroll="True"
  29. ScrollViewer.VerticalScrollBarVisibility="Auto"
  30. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  31. Width="900" Height="380" VerticalAlignment="Top">
  32. <DataGrid.Columns>
  33. <DataGridTextColumn Header="Time" Width="160" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
  34. <DataGridTextColumn Header="Incoming" Width="350" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  35. <DataGridTextColumn.ElementStyle>
  36. <Style TargetType="TextBlock">
  37. <Setter Property="TextWrapping" Value="Wrap"/>
  38. <Setter Property="Height" Value="auto"/>
  39. </Style>
  40. </DataGridTextColumn.ElementStyle>
  41. </DataGridTextColumn>
  42. <DataGridTextColumn Header="Outgoing" Width="350" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
  43. <DataGridTextColumn.ElementStyle>
  44. <Style TargetType="TextBlock">
  45. <Setter Property="TextWrapping" Value="Wrap"/>
  46. <Setter Property="Height" Value="auto"/>
  47. </Style>
  48. </DataGridTextColumn.ElementStyle>
  49. </DataGridTextColumn>
  50. </DataGrid.Columns>
  51. </DataGrid>
  52. </Grid>
  53. </UserControl>