Quantcast
Channel: How do I space out the child elements of a StackPanel? - Stack Overflow
Viewing all articles
Browse latest Browse all 12

How do I space out the child elements of a StackPanel?

$
0
0

Given a StackPanel:

<StackPanel><TextBox Height="30">Apple</TextBox><TextBox Height="80">Banana</TextBox><TextBox Height="120">Cherry</TextBox></StackPanel>

What's the best way to space out the child elements so that there are equally-sized gaps between them, even though the child elements themselves are of different sizes? Can it be done without setting properties on each of the individual children?


Viewing all articles
Browse latest Browse all 12

Latest Images

Trending Articles





Latest Images