OmronBarcodeReaderView.xaml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <UserControl x:Class="MECF.Framework.Simulator.Core.LoadPorts.OmronBarcodeReaderView"
  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="150"></RowDefinition>
  14. <RowDefinition Height="50"></RowDefinition>
  15. <RowDefinition Height="400"></RowDefinition>
  16. </Grid.RowDefinitions>
  17. <commons:SocketTitleView Grid.Row="0"></commons:SocketTitleView>
  18. <Canvas Grid.Row="1" Width="900">
  19. <CheckBox Content="Fail" IsChecked="{Binding IsFailed}" Canvas.Left="36" Canvas.Top="31"></CheckBox>
  20. <TextBlock Text="Result:" Canvas.Left="155" Canvas.Top="42"></TextBlock>
  21. <TextBox Text="{Binding ResultValue, UpdateSourceTrigger=PropertyChanged }" Canvas.Left="212" Canvas.Top="31" Margin="0" Width="284"></TextBox>
  22. </Canvas>
  23. <StackPanel Grid.Row="2" Orientation="Horizontal" Width="900">
  24. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}"></Button>
  25. </StackPanel>
  26. <DataGrid Grid.Row="3" 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="900" Height="380" VerticalAlignment="Top">
  31. <DataGrid.Columns>
  32. <DataGridTextColumn Header="Time" Width="160" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
  33. <DataGridTextColumn Header="Incoming" Width="350" 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="350" 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>