<Window x:Class="MeterVision.Dlg.LogViewerWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:MeterVision.Dlg"
        xmlns:uc="clr-namespace:MeterVision.UC"
        mc:Ignorable="d"
        SizeChanged="Window_SizeChanged"
        Closed="Window_Closed"
        WindowStartupLocation="CenterOwner"
        PreviewMouseWheel="Window_PreviewMouseWheel"
        ShowInTaskbar="False"
        PreviewKeyDown="Window_PreviewKeyDown"
        Title="AI运行日志" Height="768" Width="1024">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="0" />
            <RowDefinition Height="*" />
            <RowDefinition Height="0" />
        </Grid.RowDefinitions>

        <Border Grid.Row="0" Background="White" BorderBrush="#D3D3D3" BorderThickness="0 0 0 1">

        </Border>

        <Border Grid.Row="1" Background="White">
            <Grid x:Name="gridMid">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="400" />
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition Width="*" />
                </Grid.ColumnDefinitions>

                <Border Grid.Column="0" Margin="10 0 0 0">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>

                        <Border Grid.Row="0" Background="White" Margin="5">
                            <uc:UCImage x:Name="ucImageSrc" />
                        </Border>
                        <Border Grid.Row="1" Background="White" Margin="5">
                            <uc:UCImage x:Name="ucImageDst" />
                        </Border>
                    </Grid>
                </Border>
                <!-- The GridSplitter itself -->
                <GridSplitter Grid.Column="1" Width="5" Background="Silver" 
                          ResizeBehavior="PreviousAndNext" />

                <Border Grid.Column="2" BorderBrush="#D3D3D3" BorderThickness="1" Margin="6 6 10 10">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*" />
                            <RowDefinition Height="Auto" />
                        </Grid.RowDefinitions>

                        <Border Grid.Row="0">
                            <RichTextBox Name="RichTxtContentBox" Grid.Column="1"
                                 IsReadOnly="True" 
                                 VerticalScrollBarVisibility="Auto" 
                                 FontSize="14px" BorderThickness="0"
                                 Margin="10 6 10 10"/>
                        </Border>
                        <StackPanel x:Name="pnlImageCtl" Grid.Row="1" Orientation="Horizontal" Background="#666666" Margin="5" HorizontalAlignment="Center">
                            <Button Content="↑" FontSize="20px" Width="30" Height="30" Click="LogScrollTop_Click" Margin="20 5 20 5" Padding="0" Foreground="White" Background="#333333" />
                            <Button Content="↓" FontSize="20px" Width="30" Height="30" Click="LogScrollBottom_Click" Margin="0 5 20 5" Padding="0" Foreground="White" Background="#333333" />
                            <Button Content="📥" FontSize="20px" Width="30" Height="30" Click="AiLogSave_Click" Margin="0 5 20 5" Padding="0" Foreground="White" Background="#333333" />
                        </StackPanel>
                    </Grid>
                </Border>
            </Grid>
        </Border>

        <Border Grid.Row="2" Background="White" BorderBrush="#D3D3D3" BorderThickness="0 1 0 0">
            
        </Border>
        
    </Grid>
</Window>
