<Window x:Class="DeviceService.LogWindow"
        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"
        mc:Ignorable="d"
        Title="日志" Height="480" Width="760"
        Background="{StaticResource PageBackgroundBrush}">
    <Grid Margin="12">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Border Grid.Row="0" Style="{StaticResource CardBorder}" Padding="4">
            <ListBox x:Name="LogList"
                     Background="Transparent"
                     BorderThickness="0"
                     FontFamily="Consolas"
                     FontSize="12.5"
                     ScrollViewer.HorizontalScrollBarVisibility="Auto" />
        </Border>

        <DockPanel Grid.Row="1" Margin="0,10,0,0">
            <Button x:Name="ClearButton"
                    DockPanel.Dock="Right"
                    Style="{StaticResource SecondaryButton}"
                    MinWidth="72"
                    Content="清空"
                    Click="ClearButton_Click" />
            <CheckBox x:Name="AutoScrollBox"
                      DockPanel.Dock="Right"
                      VerticalAlignment="Center"
                      Margin="0,0,12,0"
                      IsChecked="True"
                      Content="自动滚动" />
            <TextBlock x:Name="CountText"
                       VerticalAlignment="Center"
                       Foreground="{StaticResource TextSecondaryBrush}" />
        </DockPanel>
    </Grid>
</Window>
