<UserControl x:Class="MeterVision.UC.UCRunLog"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:MeterVision.UC"
             mc:Ignorable="d" 
             Background="White"
             
             d:DesignHeight="800" d:DesignWidth="400">
    <Grid x:Name="pnlLog">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Border Grid.Row="0">
            <RichTextBox x:Name="LogRichTextBox" BorderThickness="0" VerticalScrollBarVisibility="Auto"
                                 HorizontalScrollBarVisibility="Disabled" IsReadOnly="True" VerticalAlignment="Stretch"
                                 Margin="5 5 5 0" FontSize="14px" />
        </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="LogScrollMiddle_Click" Margin="0 5 10 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 10 5" Padding="0" Foreground="White" Background="#333333" />

        </StackPanel>
    </Grid>
</UserControl>
