| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <hc:Window x:Class="TeamAAS.Dialogs.Dialogs.LogDetailWindow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:hc="https://handyorg.github.io/handycontrol"
- Title="日志详情" Width="640" SizeToContent="Height" MaxHeight="660"
- ResizeMode="NoResize" WindowStartupLocation="CenterOwner"
- ShowInTaskbar="False" Background="{DynamicResource RegionBrush}">
- <Grid Margin="20,18,20,16">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- </Grid.RowDefinitions>
- <!-- 头部:类别徽标 + 时间 -->
- <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,14">
- <Border x:Name="CategoryBadge" CornerRadius="4" Padding="12,4" Margin="0,0,12,0" Background="#2D6CDF">
- <TextBlock x:Name="CategoryText" Text="INFO" FontWeight="Bold" FontSize="13" Foreground="White"/>
- </Border>
- <TextBlock x:Name="TimeText" Text="2026-09-02 14:23:01.123" FontSize="15" FontFamily="Consolas"
- VerticalAlignment="Center" Foreground="{DynamicResource PrimaryTextBrush}"/>
- </StackPanel>
- <!-- 元信息:来源 / 流程·任务 / 详细度 -->
- <StackPanel Grid.Row="1" Margin="0,0,0,12">
- <StackPanel Orientation="Horizontal" Margin="0,3">
- <TextBlock Text="来源:" Width="82" FontSize="13" Foreground="{DynamicResource SecondaryTextBrush}"/>
- <TextBlock x:Name="SourceValue" FontSize="13" TextWrapping="Wrap"
- Foreground="{DynamicResource PrimaryTextBrush}"/>
- </StackPanel>
- <StackPanel x:Name="FlowRow" Orientation="Horizontal" Margin="0,3" Visibility="Collapsed">
- <TextBlock Text="流程/任务:" Width="82" FontSize="13" Foreground="{DynamicResource SecondaryTextBrush}"/>
- <TextBlock x:Name="FlowValue" FontSize="13" TextWrapping="Wrap"
- Foreground="{DynamicResource PrimaryTextBrush}"/>
- </StackPanel>
- <StackPanel x:Name="LevelRow" Orientation="Horizontal" Margin="0,3" Visibility="Collapsed">
- <TextBlock Text="详细度:" Width="82" FontSize="13" Foreground="{DynamicResource SecondaryTextBrush}"/>
- <TextBlock x:Name="LevelValue" FontSize="13"
- Foreground="{DynamicResource PrimaryTextBrush}"/>
- </StackPanel>
- </StackPanel>
- <!-- 正文(只读、可选中复制、可滚动) -->
- <TextBox x:Name="MessageText" Grid.Row="2" IsReadOnly="True" TextWrapping="Wrap"
- AcceptsReturn="True" MinHeight="120" MaxHeight="320" Padding="10" FontSize="13"
- VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"/>
- <!-- 按钮 -->
- <StackPanel Grid.Row="3" Orientation="Horizontal" HorizontalAlignment="Right" Margin="0,14,0,0">
- <Button x:Name="BtnCopyMessage" Content="复制内容" Padding="16,6" Margin="0,0,8,0" Click="BtnCopyMessage_Click"/>
- <Button x:Name="BtnCopyAll" Content="复制全部" Padding="16,6" Margin="0,0,8,0"
- Style="{StaticResource ButtonPrimary}" Click="BtnCopyAll_Click"/>
- <Button x:Name="BtnClose" Content="关闭" Padding="16,6" Click="BtnClose_Click"/>
- </StackPanel>
- </Grid>
- </hc:Window>
|