I have a case where I need the rows of the grid to be smaller than the default height. When I set the cell max height to something like 20, there is plenty of space to show the text, but the bottom of the text gets cut off and there is empty space above the text (see image).
I have tried creating a CellValuePresenter and setting the margin and padding to 0, but that did not work. Is there a way to modify the spacing between rows?
John Myczek
Hi John,
The propblem was caused by the default styles for the editors having overly large margin and padding properties. We have since corrected this. In the build you have you can control this by specifying these settings for the editors. The easiest way to do this is to provide styles in the resources collection. e.g.
<Setter Property="Margin" Value="1,1,1,1" />
</Style>
I hope this helps