Ive noticed that putting TextBlocks inside another TextBlock automatically gives them some spacing in between. I would like to use this behaviour for a custom ItemsControl. I want content in this ItemsControl to automatically get a certain amount of pixels between them, but only between and not after the last item or before the first.
(Edit)
<TextBlock>
<TextBlock Text="A" />
<TextBlock Text="B" />
<TextBlock Text="C" />
</TextBlock>
givese: "A B C" and not "ABC"
<ItemsControl>
<Button Content="A" />
<Button Content="B" />
<Button Content="C" />
</ItemsControl>
gives three tightly packed buttons, but I want a margin around button B, ie spacing between every button, or whatever is inside this ItemsControl. I don't want to manually have to set Margins.