| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <hc:Window x:Class="TeamAAS.Views.RegistryDebugWindow"
- 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"
- xmlns:pg="clr-namespace:PropertyGridLib;assembly=PropertyGridLib"
- Title="ResultRegistry 监控(调试)"
- Width="980" Height="660"
- WindowStartupLocation="CenterOwner"
- Background="{DynamicResource RegionBrush}">
- <Grid Margin="12">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <!-- 工具栏 -->
- <DockPanel Grid.Row="0" Margin="0,0,0,10">
- <TextBlock DockPanel.Dock="Left" VerticalAlignment="Center" TextWrapping="Wrap"
- Text="用 PropertyGrid 直接对着 ResultRegistry.Main(运行态)与 ResultRegistry.Debug(编辑态),监控两者是否被正确管理(缓存是否泄漏、清理是否生效)。"
- Foreground="{DynamicResource SecondaryTextBrush}" FontSize="13" Margin="0,0,12,0"/>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <CheckBox x:Name="ChkAutoRefresh" Content="自动刷新" IsChecked="False"
- VerticalAlignment="Center" Margin="0,0,12,0"
- Foreground="{DynamicResource PrimaryTextBrush}"
- Checked="ChkAutoRefresh_Changed" Unchecked="ChkAutoRefresh_Changed"/>
- <Button x:Name="BtnRefresh" Content="刷新" Padding="18,5" Click="BtnRefresh_Click"/>
- </StackPanel>
- </DockPanel>
- <!-- 两个注册表并排 -->
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Border Grid.Column="0" Margin="0,0,6,0" CornerRadius="6"
- BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
- Background="{DynamicResource SecondaryRegionBrush}">
- <DockPanel>
- <TextBlock DockPanel.Dock="Top" Text="Main(主页运行流程)" FontWeight="Bold" FontSize="14"
- Foreground="{DynamicResource PrimaryBrush}" Margin="10,8"/>
- <pg:PropertyGrid x:Name="GridMain" Margin="6,0,6,6"
- ShowSearchBar="True" ShowDescription="True"/>
- </DockPanel>
- </Border>
- <Border Grid.Column="1" Margin="6,0,0,0" CornerRadius="6"
- BorderBrush="{DynamicResource BorderBrush}" BorderThickness="1"
- Background="{DynamicResource SecondaryRegionBrush}">
- <DockPanel>
- <TextBlock DockPanel.Dock="Top" Text="Debug(产品编辑/调试流程)" FontWeight="Bold" FontSize="14"
- Foreground="{DynamicResource PrimaryBrush}" Margin="10,8"/>
- <pg:PropertyGrid x:Name="GridDebug" Margin="6,0,6,6"
- ShowSearchBar="True" ShowDescription="True"/>
- </DockPanel>
- </Border>
- </Grid>
- </Grid>
- </hc:Window>
|