CompLogViewer.xaml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <Window x:Class="MeterVision.Dlg.CompLogViewer"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:MeterVision.Dlg"
  7. xmlns:uc="clr-namespace:MeterVision.UC"
  8. mc:Ignorable="d"
  9. SizeChanged="Window_SizeChanged"
  10. Closed="Window_Closed"
  11. WindowStartupLocation="CenterOwner"
  12. WindowState="Maximized"
  13. PreviewMouseWheel="Window_PreviewMouseWheel"
  14. ShowInTaskbar="False"
  15. PreviewKeyDown="Window_PreviewKeyDown"
  16. Title="AI运行日志" Height="768" Width="1024">
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="0" />
  20. <RowDefinition Height="*" />
  21. <RowDefinition Height="0" />
  22. </Grid.RowDefinitions>
  23. <Border Grid.Row="0" Background="White" BorderBrush="#D3D3D3" BorderThickness="0 0 0 1">
  24. </Border>
  25. <Border Grid.Row="1" Background="White">
  26. <Grid x:Name="gridMid">
  27. <Grid.ColumnDefinitions>
  28. <ColumnDefinition Width="350" />
  29. <ColumnDefinition Width="Auto" />
  30. <ColumnDefinition Width="*" />
  31. </Grid.ColumnDefinitions>
  32. <Border Grid.Column="0" Margin="10 0 0 0">
  33. <Grid>
  34. <Grid.RowDefinitions>
  35. <RowDefinition Height="*" />
  36. <RowDefinition Height="*" />
  37. </Grid.RowDefinitions>
  38. <Border Grid.Row="0" Background="White" Margin="5">
  39. <uc:UCImage x:Name="ucImageSrc" />
  40. </Border>
  41. <Border Grid.Row="1" Background="White" Margin="5">
  42. <uc:UCImage x:Name="ucImageDst" />
  43. </Border>
  44. </Grid>
  45. </Border>
  46. <!-- The GridSplitter itself -->
  47. <GridSplitter Grid.Column="1" Width="5" Background="Silver"
  48. ResizeBehavior="PreviousAndNext" />
  49. <Grid Grid.Column="2">
  50. <Grid.ColumnDefinitions>
  51. <ColumnDefinition Width="*" />
  52. <ColumnDefinition Width="*" />
  53. </Grid.ColumnDefinitions>
  54. <Border Grid.Column="0" BorderBrush="#D3D3D3" BorderThickness="1" Margin="6 6 10 10">
  55. <Grid>
  56. <Grid.RowDefinitions>
  57. <RowDefinition Height="Auto" />
  58. <RowDefinition Height="*" />
  59. <RowDefinition Height="Auto" />
  60. </Grid.RowDefinitions>
  61. <TextBlock Text="新任务日志" Margin="10 5 0 5" FontSize="14px"/>
  62. <Border Grid.Row="1">
  63. <RichTextBox Name="RichTxtContentBox" Grid.Column="1"
  64. IsReadOnly="True"
  65. VerticalScrollBarVisibility="Auto"
  66. FontSize="14px" BorderThickness="0"
  67. Margin="10 6 10 10"/>
  68. </Border>
  69. <StackPanel x:Name="pnlImageCtl" Grid.Row="2" Orientation="Horizontal" Background="#666666" Margin="5" HorizontalAlignment="Center">
  70. <Button Content="↑" FontSize="20px" Width="30" Height="30" Click="LogScrollTop_Click" Margin="20 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  71. <Button Content="↓" FontSize="20px" Width="30" Height="30" Click="LogScrollBottom_Click" Margin="0 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  72. <Button Content="📁" FontSize="20px" Width="30" Height="30" Click="AiLogSave_Click" Margin="0 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  73. </StackPanel>
  74. </Grid>
  75. </Border>
  76. <Border Grid.Column="1" BorderBrush="#D3D3D3" BorderThickness="1" Margin="6 6 10 10">
  77. <Grid>
  78. <Grid.RowDefinitions>
  79. <RowDefinition Height="Auto" />
  80. <RowDefinition Height="*" />
  81. <RowDefinition Height="Auto" />
  82. </Grid.RowDefinitions>
  83. <TextBlock Text="旧任务日志" Margin="10 5 0 5" FontSize="14px"/>
  84. <Border Grid.Row="1">
  85. <RichTextBox Name="RichTxtContentBox2" Grid.Column="1"
  86. IsReadOnly="True"
  87. VerticalScrollBarVisibility="Auto"
  88. FontSize="14px" BorderThickness="0"
  89. Margin="10 6 10 10"/>
  90. </Border>
  91. <StackPanel x:Name="pnlImageCtl2" Grid.Row="2" Orientation="Horizontal" Background="#666666" Margin="5" HorizontalAlignment="Center">
  92. <Button Content="↑" FontSize="20px" Width="30" Height="30" Click="LogScrollTop2_Click" Margin="20 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  93. <Button Content="↓" FontSize="20px" Width="30" Height="30" Click="LogScrollBottom2_Click" Margin="0 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  94. <Button Content="📁" FontSize="20px" Width="30" Height="30" Click="AiLogSave2_Click" Margin="0 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  95. </StackPanel>
  96. </Grid>
  97. </Border>
  98. </Grid>
  99. </Grid>
  100. </Border>
  101. <Border Grid.Row="2" Background="White" BorderBrush="#D3D3D3" BorderThickness="0 1 0 0">
  102. </Border>
  103. </Grid>
  104. </Window>