SimuSMCChillerPMBView.xaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <UserControl x:Class="EfemDualSimulator.Views.SimuSMCChillerPMBView"
  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="50"></RowDefinition>
  15. <RowDefinition Height="*"></RowDefinition>
  16. </Grid.RowDefinitions>
  17. <commons:SerialPortTitleView Grid.Row="0"></commons:SerialPortTitleView>
  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="1200">
  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="1200" Height="Auto" VerticalAlignment="Top">
  32. <DataGrid.Columns>
  33. <DataGridTextColumn Header="Time" Width="200" IsReadOnly="True" Binding="{Binding OccurTime, UpdateSourceTrigger=PropertyChanged}" />
  34. <DataGridTextColumn Header="Incoming" Width="500" 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="500" 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>