优化直方图区域布局。

This commit is contained in:
QI Mingxuan
2026-05-21 10:40:38 +08:00
parent 5c56779f9f
commit e6e776357d
2 changed files with 8 additions and 7 deletions
@@ -12,7 +12,7 @@
prism:ViewModelLocator.AutoWireViewModel="True"
Background="White">
<Grid Margin="15">
<Grid Margin="15 15 15 5">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="10"/>
@@ -23,8 +23,8 @@
<RowDefinition Height="Auto"/>
<RowDefinition Height="10"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="10"/>
<RowDefinition Height="150"/>
<RowDefinition Height="8"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- 第1行:灵敏度 + 帧率 | Row 1: Sensitivity (PGA) + Frame rate -->
@@ -140,11 +140,12 @@
</telerik:RadButton>
</Grid>
<!-- 第6行:图像灰度直方图 | Row 6: Image grayscale histogram -->
<!-- 第6行:图像灰度直方图(填充剩余空间)| Row 6: Image grayscale histogram (fill remaining space) -->
<hist:ImageHistogramControl x:Name="HistogramControl"
Grid.Row="10"
MaxFrameRate="10"
IsLogarithmic="False"
HorizontalAlignment="Stretch"/>
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"/>
</Grid>
</UserControl>
@@ -4,8 +4,8 @@
xmlns:loc="clr-namespace:XP.Common.Localization.Extensions;assembly=XP.Common"
xmlns:detectorViews="clr-namespace:XP.Hardware.Detector.Views"
Title="{loc:Localization Detector_ConfigWindowTitle}"
Height="420" Width="400"
MinHeight="380" MinWidth="360"
Height="450" Width="400"
MinHeight="400" MinWidth="360"
WindowStartupLocation="CenterOwner"
ResizeMode="CanResize">
<Grid>