Instantiate and use a WrapPanel element
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" WindowTitle="WrapPanel Sample"> <Border HorizontalAlignment="Left" VerticalAlignment="Top" BorderBrush="Black" BorderThickness="2"> <WrapPanel Background="LightBlue" Width="200" Height="100"> <Button Width="200">Button 1</Button> <Button>Button 2</Button> <Button>Button 3</Button> <Button>Button 4</Button> </WrapPanel> </Border> </Page>
1. | WrapPanel with FlowDirection | ||
2. | Arrange UI Elements Into Automatically Wrapping Rows or Columns | ||
3. | WrapPanel with Label and TextBox | ||
4. | Put rectangles to WrapPanel | ||
5. | Wrap Buttons to WrapPanel |