RegistryDebugWindow.xaml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <hc:Window x:Class="TeamAAS.Views.RegistryDebugWindow"
  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. xmlns:pg="clr-namespace:PropertyGridLib;assembly=PropertyGridLib"
  6. Title="ResultRegistry 监控(调试)"
  7. Width="980" Height="660"
  8. WindowStartupLocation="CenterOwner"
  9. Background="{DynamicResource RegionBrush}">
  10. <Grid Margin="12">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="*"/>
  14. </Grid.RowDefinitions>
  15. <!-- 工具栏 -->
  16. <DockPanel Grid.Row="0" Margin="0,0,0,10">
  17. <TextBlock DockPanel.Dock="Left" VerticalAlignment="Center" TextWrapping="Wrap"
  18. Text="用 PropertyGrid 直接对着 ResultRegistry.Main(运行态)与 ResultRegistry.Debug(编辑态),监控两者是否被正确管理(缓存是否泄漏、清理是否生效)。"
  19. Foreground="{DynamicResource SecondaryTextBrush}" FontSize="13" Margin="0,0,12,0"/>
  20. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  21. <CheckBox x:Name="ChkAutoRefresh" Content="自动刷新" IsChecked="False"
  22. VerticalAlignment="Center" Margin="0,0,12,0"
  23. Foreground="{DynamicResource PrimaryTextBrush}"
  24. Checked="ChkAutoRefresh_Changed" Unchecked="ChkAutoRefresh_Changed"/>
  25. <Button x:Name="BtnRefresh" Content="刷新" Padding="18,5" Click="BtnRefresh_Click"/>
  26. </StackPanel>
  27. </DockPanel>
  28. <!-- 两个注册表并排 -->
  29. <Grid Grid.Row="1">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition Width="*"/>
  32. <ColumnDefinition Width="*"/>
  33. </Grid.ColumnDefinitions>
  34. <Border Grid.Column="0" Margin="0,0,6,0" CornerRadius="6"
  35. BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
  36. Background="{DynamicResource SecondaryRegionBrush}">
  37. <DockPanel>
  38. <TextBlock DockPanel.Dock="Top" Text="Main(主页运行流程)" FontWeight="Bold" FontSize="14"
  39. Foreground="{DynamicResource PrimaryBrush}" Margin="10,8"/>
  40. <pg:PropertyGrid x:Name="GridMain" Margin="6,0,6,6"
  41. ShowSearchBar="True" ShowDescription="True"/>
  42. </DockPanel>
  43. </Border>
  44. <Border Grid.Column="1" Margin="6,0,0,0" CornerRadius="6"
  45. BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
  46. Background="{DynamicResource SecondaryRegionBrush}">
  47. <DockPanel>
  48. <TextBlock DockPanel.Dock="Top" Text="Debug(产品编辑/调试流程)" FontWeight="Bold" FontSize="14"
  49. Foreground="{DynamicResource PrimaryBrush}" Margin="10,8"/>
  50. <pg:PropertyGrid x:Name="GridDebug" Margin="6,0,6,6"
  51. ShowSearchBar="True" ShowDescription="True"/>
  52. </DockPanel>
  53. </Border>
  54. </Grid>
  55. </Grid>
  56. </hc:Window>