-
Notifications
You must be signed in to change notification settings - Fork 146
HeaderedItemsControl margin is doubled #844
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingcomponents::controls::headeredcontrolsControls such as HeaderedItemsControl, HeaderedTreeView, and HeaderedContentControl.Controls such as HeaderedItemsControl, HeaderedTreeView, and HeaderedContentControl.ux 🖌️Everything design relatedEverything design related
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcomponents::controls::headeredcontrolsControls such as HeaderedItemsControl, HeaderedTreeView, and HeaderedContentControl.Controls such as HeaderedItemsControl, HeaderedTreeView, and HeaderedContentControl.ux 🖌️Everything design relatedEverything design related
Describe the bug
If you set the
Marginproperty on aHeaderedItemsControl, the actual margin applied is double the value set.I suspect this is caused by
Windows/components/HeaderedControls/src/HeaderedItemsControl/HeaderedItemsControl.xaml
Line 14 in b1d8231
This issue doesn't apply to the
Paddingproperty though, even though that is set in the template similarly. Padding is not doubled, and removing the padding from the style causes no padding to be applied. I'm not familiar enough with how this works to know why margin and padding are handled differently here, so I don't know if the fix is to simply remove the margin from the style, or if that would cause other issues.Steps to reproduce
Expected behavior
The amount of margin applied should be the exact value given.
Screenshots
No response
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2026
Visual Studio Build Number
18.4.3
Device form factor
No response
Additional context
No response
Help us help you
Yes, but only if others can assist.