Add padding to Grid in Silverlight for Row and Column

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>

0 Replies to “Add padding to Grid in Silverlight for Row and Column”

Leave a Reply

Your email address will not be published. Required fields are marked *