none
Space between the child elements of a StackPanel

    Question

  • I have a StackPanel:

    <StackPanel>
    <TextBox Height="10">AAAAAA</TextBox>
    <TextBox Height="20">BBBBBB</TextBox>
    <TextBox Height="30">CCCCCC</TextBox>
    </StackPanel>

    How can I space out the child elements to have equal gaps between them. 
    I do not want to set properties on each of the individual children?
    Thursday, August 25, 2011 3:09 AM

Answers