LogDetailWindow.xaml 3.5 KB

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