SimAePowerView.xaml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <UserControl x:Class="MECF.Framework.Simulator.Core.RFs.AE.SimAePowerView"
  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:deviceControl="clr-namespace:MECF.Framework.UI.Core.DeviceControl;assembly=MECF.Framework.UI.Core"
  7. xmlns:commons="clr-namespace:MECF.Framework.Simulator.Core.Commons"
  8. Height="900" Width="900">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="100"></RowDefinition>
  12. <RowDefinition Height="150"></RowDefinition>
  13. <RowDefinition Height="50"></RowDefinition>
  14. <RowDefinition Height="400"></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <commons:SocketTitleView Grid.Row="0"></commons:SocketTitleView>
  17. <Canvas Grid.Row="1" Width="900">
  18. <CheckBox Content="Fail" IsChecked="{Binding IsFailed}" Canvas.Left="36" Canvas.Top="31"></CheckBox>
  19. <CheckBox Content="HALO" IsChecked="{Binding IsHalo}" Canvas.Left="36" Canvas.Top="62"></CheckBox>
  20. <CheckBox Content="ON" IsChecked="{Binding IsOn}" Canvas.Left="36" Canvas.Top="90"></CheckBox>
  21. <CheckBox Content="ACK Together with response" IsChecked="{Binding IsContinueAck}" Canvas.Left="36" Canvas.Top="126"></CheckBox>
  22. <TextBlock Text="Result:" Canvas.Left="155" Canvas.Top="42"></TextBlock>
  23. <TextBox Text="{Binding ResultValue, UpdateSourceTrigger=PropertyChanged }" Canvas.Left="212" Canvas.Top="31" Margin="0" Width="284"></TextBox>
  24. </Canvas>
  25. <StackPanel Grid.Row="2" Orientation="Horizontal" Width="900">
  26. <Button Content="Clear Log" Width="100" Height="35" Command="{Binding ClearLogCommand}"></Button>
  27. </StackPanel>
  28. <DataGrid Grid.Row="3" FontSize="16" AutoGenerateColumns="False" CanUserAddRows="False" CanUserResizeRows="False" CanUserSortColumns="False" ItemsSource="{Binding TransactionLogItems}"
  29. ScrollViewer.CanContentScroll="True"
  30. ScrollViewer.VerticalScrollBarVisibility="Auto"
  31. ScrollViewer.HorizontalScrollBarVisibility="Auto"
  32. Width="900" Height="380" VerticalAlignment="Top">
  33. <DataGrid.Columns>
  34. <DataGridTextColumn Header="Time" Width="160" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}"/>
  35. <DataGridTextColumn Header="Incoming" Width="350" IsReadOnly="True" Binding="{Binding Incoming, UpdateSourceTrigger=PropertyChanged}">
  36. <DataGridTextColumn.ElementStyle>
  37. <Style TargetType="TextBlock">
  38. <Setter Property="TextWrapping" Value="Wrap"/>
  39. <Setter Property="Height" Value="auto"/>
  40. </Style>
  41. </DataGridTextColumn.ElementStyle>
  42. </DataGridTextColumn>
  43. <DataGridTextColumn Header="Outgoing" Width="350" IsReadOnly="True" Binding="{Binding Outgoing, UpdateSourceTrigger=PropertyChanged}">
  44. <DataGridTextColumn.ElementStyle>
  45. <Style TargetType="TextBlock">
  46. <Setter Property="TextWrapping" Value="Wrap"/>
  47. <Setter Property="Height" Value="auto"/>
  48. </Style>
  49. </DataGridTextColumn.ElementStyle>
  50. </DataGridTextColumn>
  51. </DataGrid.Columns>
  52. </DataGrid>
  53. </Grid>
  54. </UserControl>