Datagrid header 多余的margin问题
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Search the DataGrid template for DataGridBaseStyle and DataGrid.Small, then inspect the SimplePanel and DataGridColumnHeadersPresenter margins shown in the issue. Reproduce the problem by applying a blue header background. Done means the header background reaches the first row without the visible gray gap in both affected styles.
Written by the indexing model from the issue text.
Description
Describe the bug
DataGrid的Template里面的两个Margin硬编码有问题。DataGridBaseStyle和DataGrid.Small都受这个影响。
Steps to reproduce the bug
给header换个颜色就能重现了。
<DataGrid.ColumnHeaderStyle>
<Style TargetType="DataGridColumnHeader">
<Setter Property="Background" Value="Blue"
</Style>
</DataGrid.ColumnHeaderStyle>
下面这两个Margin="0,0,0,6"会让header下面出现gap,当Header的背景色都是灰色的时候看不出来,但是换了颜色后,就很明显了。第一行和Header之间有个灰色的gap。
<hc:SimplePanel Margin="0,0,0,6" ...
<DataGridColumnHeadersPresenter x:Name="PART_ColumnHeadersPresenter" Margin="0,0,0,6" ..
Expected behavior
换header颜色时,下面不要有灰色gap
Screenshots
No response
NuGet package version
None
IDE
No response
Framework type
No response
Windows version
No response
Additional context
No response
- Dominant language
- C#
- Stars
- 7.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HandyOrg/HandyControl
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
HandyOrg/HandyControl#1818 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
HandyOrg/HandyControl#1820 ·
-
不能够独立的引入用户认为需要的部分 Open
Difficulty 4/5 3-5 days Newbie friendliness 48/100
HandyOrg/HandyControl#1816 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
HandyOrg/HandyControl#1813 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
HandyOrg/HandyControl#1803 ·
All issues in HandyOrg/HandyControl
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·