dotnet / dotnet/wpf

GridViewRowPresenter adds Margin to ContentPresenter in code when creating cells

Open
#249 3 comments 4 reactions 0 assignees View on GitHub
API suggestion Design Discussion
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

Bug has been in WPF since the beginning

**Problem description:**
When GridViewRowPresenter creates a cell in a ListView/GridView combination, it arbitrarily adds a Margin of 6,0,6,0 in code to the ContentPresenter. This means that you cannot style the GridView correctly unless you add a negative margin in your style to reverse this behaviour - which is what some of us have had to do for years. Would be great if this could be fixed

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.