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?
You can use following technique which is describe in following link
here you can set the margin for textbox style in the stackpanel
let me know if you have any question
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?