-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
Describe the bug
如果 UniformSpacingPanel 包含 Collapsed 元素,那么对齐行为不正确,如下所示,其中的 CheckBox 折叠后,右边缘多了 12 单位的内边距。
n 个折叠的元素,导致右侧产生 n * HorizontalSpacing 的内边距。
<hc:UniformSpacingPanel Grid.Row="4"
Margin="0,8,0,0"
HorizontalAlignment="Right"
HorizontalSpacing="12"
Orientation="Horizontal">
<CheckBox Visibility="Visible/Collapsed"/>
<Button />
<ToggleButton />
</hc:UniformSpacingPanel>Expected behavior
No response
Screenshots
No response
NuGet package version
HandyControls (Custom version) 3.6.0
IDE
Visual Studio 2026
Framework type
.Net 10.0
Windows version
Windows 11
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

