dotnet / dotnet/wpf

Allow setting padding on DataGrid cells

Open
#2,874 0 comments 11 reactions 0 assignees View on GitHub
API suggestion
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

WPF is amazing but there is still a number of scenarios where it feels unfinished.

Please make it very easy to add padding to DataGrid cells. It is possible to work around but it's a bit cumbersome.

Examples:
https://stackoverflow.com/questions/5246745/set-a-padding-on-datagridcells-in-wpf

I suppose it could be a property like DefaultCellPadding of type Thickness on DataGrid itself, and a matching property on each column, which would override the DataGrid one.

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.