<WrapPanel Margin="3"> <Button VerticalAlignment="Top" Width="100">1</Button> <Button MinHeight="60">2</Button> <Button VerticalAlignment="Bottom" Width="100">3</Button> <Button Width="100">4</Button> <Button VerticalAlignment="Center" Width="100">5</Button> </WrapPanel>
<DockPanel> <Button DockPanel.Dock="Top">Top</Button> <Button DockPanel.Dock="Bottom">Bottom</Button> <Button DockPanel.Dock="Left">Left</Button> <Button DockPanel.Dock="Right">Right</Button> <Button>center</Button> </DockPanel>
<DockPanel> <StackPanel DockPanel.Dock="Bottom" HorizontalAlignment="Right" Orientation="Horizontal"> <Button Width="60" Height="30" Margin="5,0">OK</Button> <Button Width="60" Height="30">Cancel</Button> </StackPanel> <TextBox DockPanel.Dock="Top" Margin="5">This is a test.</TextBox> </DockPanel>