WindowsCommunityToolkit icon indicating copy to clipboard operation
WindowsCommunityToolkit copied to clipboard

Microsoft.Toolkit.Uwp.UI.Controls.DataGrid RowHeight below 32px

Open sdanev opened this issue 2 years ago • 3 comments

Describe the bug

DataGrid RowHeight cannot be set below 32px.

The Default DataGridCell Style has setter MinHeight=32.

Regression

No response

Reproducible in sample app?

  • [X] This bug can be reproduced in the sample app.

Steps to reproduce

DataGrid.RowHeight = 20;

Expected behavior

Row Height to be set to 20px

Screenshots

No response

Windows Build Number

  • [ ] Windows 10 1809 (Build 17763)
  • [ ] Windows 10 1903 (Build 18362)
  • [ ] Windows 10 1909 (Build 18363)
  • [ ] Windows 10 2004 (Build 19041)
  • [ ] Windows 10 20H2 (Build 19042)
  • [ ] Windows 10 21H1 (Build 19043)
  • [ ] Windows 11 21H2 (Build 22000)
  • [ ] Other (specify)

Other Windows Build number

No response

App minimum and target SDK version

  • [ ] Windows 10, version 1809 (Build 17763)
  • [ ] Windows 10, version 1903 (Build 18362)
  • [ ] Windows 10, version 1909 (Build 18363)
  • [ ] Windows 10, version 2004 (Build 19041)
  • [ ] Other (specify)

Other SDK version

No response

Visual Studio Version

No response

Visual Studio Build Number

No response

Device form factor

No response

Nuget packages

No response

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item.

sdanev avatar Jan 11 '23 03:01 sdanev

Hello sdanev, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

ghost avatar Jan 11 '23 03:01 ghost

@sdanev should probably be better exposed with a resource value, but you can copy the style to define your own and change this behavior currently.

michael-hawker avatar Jan 18 '23 23:01 michael-hawker

A preferred solution would be configurable padding instead so the row heights can still be different depending on row contents, like multiple lines (and of course allowing lower minimum height than 32).

ekdahl avatar Aug 30 '23 08:08 ekdahl