TazmoRobotSerialView.xaml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <UserControl x:Class="MECF.Framework.Simulator.Core.Robots.TazmoRobotSerialView"
  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:SerialPortTitleView Grid.Row="0"></commons:SerialPortTitleView>-->
  18. <commons:SocketTitleView Grid.Row="0"></commons:SocketTitleView>
  19. <Canvas Grid.Row="1" Width="900">
  20. <CheckBox Content="Fail" IsChecked="{Binding IsFailed}" Canvas.Left="36" Canvas.Top="31"></CheckBox>
  21. <TextBlock Text="! UNo ( SeqNo ) StsN Errcd XXXX Sum CR " Canvas.Left="212" Canvas.Top="11"></TextBlock>
  22. <TextBlock Text="CMD:" Canvas.Left="155" Canvas.Top="42"></TextBlock>
  23. <TextBox Text="{Binding ResultValue, UpdateSourceTrigger=PropertyChanged }" Canvas.Left="358" Canvas.Top="31" Margin="0" Width="284"></TextBox>
  24. <TextBlock Text="Error:" Canvas.Left="310" Canvas.Top="45"></TextBlock>
  25. <TextBox Text="{Binding ResultValue, UpdateSourceTrigger=PropertyChanged}" Canvas.Left="212" Canvas.Top="31" Margin="0" Width="74"/>
  26. </Canvas>
  27. <StackPanel Grid.Row="2" Orientation="Horizontal" Width="900">
  28. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}"></Button>
  29. </StackPanel>
  30. <DataGrid Grid.Row="3" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
  31. ScrollViewer.CanContentScroll="True"
  32. ScrollViewer.VerticalScrollBarVisibility="Auto"
  33. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  34. Width="900" Height="380" VerticalAlignment="Top">
  35. <DataGrid.Columns>
  36. <DataGridTextColumn Header="Time" Width="160" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
  37. <DataGridTextColumn Header="Incoming" Width="350" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  38. <DataGridTextColumn.ElementStyle>
  39. <Style TargetType="TextBlock">
  40. <Setter Property="TextWrapping" Value="Wrap"/>
  41. <Setter Property="Height" Value="auto"/>
  42. </Style>
  43. </DataGridTextColumn.ElementStyle>
  44. </DataGridTextColumn>
  45. <DataGridTextColumn Header="Outgoing" Width="350" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
  46. <DataGridTextColumn.ElementStyle>
  47. <Style TargetType="TextBlock">
  48. <Setter Property="TextWrapping" Value="Wrap"/>
  49. <Setter Property="Height" Value="auto"/>
  50. </Style>
  51. </DataGridTextColumn.ElementStyle>
  52. </DataGridTextColumn>
  53. </DataGrid.Columns>
  54. </DataGrid>
  55. </Grid>
  56. </UserControl>