A small part of my UI is written like so:
<StackPanel>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="Keywords" FontWeight="Bold" />
<TextBox Padding="2" Background="#eee" Margin="0,0,0,50"/>
</StackPanel>
<StackPanel Grid.Column="1">
<TextBlock Text="Exclusions" FontWeight="Bold" />
<TextBox Padding="2" Background="#eee" Margin="0,0,0,50"/>
</StackPanel>
</Grid>
<Next thingy>
</StackPanel>
It creates the margin correctly from one segment to the next in the StackPanel but does not stretch the background color with it. Take a look.
You also cannot type passed a single column of text. I would like to the TextBox to extend vertically so you can basically write a paragraph in it if you wanted to. Is there another type of box I should be using instead?