LogViewerWindow.xaml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <Window x:Class="MeterVision.Dlg.LogViewerWindow"
  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. PreviewMouseWheel="Window_PreviewMouseWheel"
  13. ShowInTaskbar="False"
  14. PreviewKeyDown="Window_PreviewKeyDown"
  15. Title="AI运行日志" Height="768" Width="1024">
  16. <Grid>
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="0" />
  19. <RowDefinition Height="*" />
  20. <RowDefinition Height="0" />
  21. </Grid.RowDefinitions>
  22. <Border Grid.Row="0" Background="White" BorderBrush="#D3D3D3" BorderThickness="0 0 0 1">
  23. </Border>
  24. <Border Grid.Row="1" Background="White">
  25. <Grid x:Name="gridMid">
  26. <Grid.ColumnDefinitions>
  27. <ColumnDefinition Width="400" />
  28. <ColumnDefinition Width="Auto" />
  29. <ColumnDefinition Width="*" />
  30. </Grid.ColumnDefinitions>
  31. <Border Grid.Column="0" Margin="10 0 0 0">
  32. <Grid>
  33. <Grid.RowDefinitions>
  34. <RowDefinition Height="*" />
  35. <RowDefinition Height="*" />
  36. </Grid.RowDefinitions>
  37. <Border Grid.Row="0" Background="White" Margin="5">
  38. <uc:UCImage x:Name="ucImageSrc" />
  39. </Border>
  40. <Border Grid.Row="1" Background="White" Margin="5">
  41. <uc:UCImage x:Name="ucImageDst" />
  42. </Border>
  43. </Grid>
  44. </Border>
  45. <!-- The GridSplitter itself -->
  46. <GridSplitter Grid.Column="1" Width="5" Background="Silver"
  47. ResizeBehavior="PreviousAndNext" />
  48. <Border Grid.Column="2" BorderBrush="#D3D3D3" BorderThickness="1" Margin="6 6 10 10">
  49. <Grid>
  50. <Grid.RowDefinitions>
  51. <RowDefinition Height="*" />
  52. <RowDefinition Height="Auto" />
  53. </Grid.RowDefinitions>
  54. <Border Grid.Row="0">
  55. <RichTextBox Name="RichTxtContentBox" Grid.Column="1"
  56. IsReadOnly="True"
  57. VerticalScrollBarVisibility="Auto"
  58. FontSize="14px" BorderThickness="0"
  59. Margin="10 6 10 10"/>
  60. </Border>
  61. <StackPanel x:Name="pnlImageCtl" Grid.Row="1" Orientation="Horizontal" Background="#666666" Margin="5" HorizontalAlignment="Center">
  62. <TextBox x:Name="txtSearchBox" Width="150" Height="30" Margin="10 5 10 5" FontSize="14" VerticalContentAlignment="Center" />
  63. <Button Content="🔍" FontSize="16px" Width="30" Height="30" Click="SearchButton_Click" Margin="0 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  64. <Button Content="↑" FontSize="20px" Width="30" Height="30" Click="LogScrollTop_Click" Margin="20 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  65. <Button Content="↓" FontSize="20px" Width="30" Height="30" Click="LogScrollBottom_Click" Margin="0 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  66. <Button Content="📥" FontSize="20px" Width="30" Height="30" Click="AiLogSave_Click" Margin="0 5 20 5" Padding="0" Foreground="White" Background="#333333" />
  67. </StackPanel>
  68. </Grid>
  69. </Border>
  70. </Grid>
  71. </Border>
  72. <Border Grid.Row="2" Background="White" BorderBrush="#D3D3D3" BorderThickness="0 1 0 0">
  73. </Border>
  74. </Grid>
  75. </Window>