How to change row height in PropertyGrid

Grids for WPF Forum

Posted 6 years ago by Dariusz Wąsacz
Version: 13.2.0591
Avatar

Hi,

How could I change row height of property grid? I'd like to make rows slightly smaller (the same height as they are in VisualStudio).

Best regards,

Darisz Wąsacz,
InstalSoft

Comments (1)

Posted 6 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Dariusz,

The PropertyGrid.xaml file has a MinHeight of 20 set up in the themes:PropertyGridResourceKeys.NameCellContainerStyleKey's Template.  That and/or some of the paddings in that template might need to be tweaked to be smaller.

Rows also stretch taller as needed based on the height of the property editors.  On my machine, most of the property editors are 21px tall or so.  You would need to probably clone and update all the property editor templates you use to have smaller heights as well.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.