I spent far too long trying figure out how to add padding to a Grid’s rows and column. I styled the controls, etc. It finally dawned on me that the answer was much simpler. Stupid Simple actually, so just save yourself some headache and INSERT A ROW WITH A FIXED HEIGHT!. Or COLUMN……Stupid simple, I told you.
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="4" /> <!-- Look ma, padding -->
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
.....
</Grid>
#1 by Jeff Tu on December 17, 2010 - 7:06 am
Your example uses Grid, not DataGrid. Is that intentional???
#2 by Brian Seekford on December 30, 2010 - 2:30 pm
My oversight. Thanks for pointing that out. Mind was thinking one thing while fingers typed another.