Instantiate and use a WrapPanel element : WrapPanel « Windows Presentation Foundation « VB.Net






Instantiate and use a WrapPanel element

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>

   
    
    
    
    
  








Related examples in the same category

1.WrapPanel with FlowDirectionWrapPanel with FlowDirection
2.Arrange UI Elements Into Automatically Wrapping Rows or ColumnsArrange UI Elements Into Automatically Wrapping Rows or Columns
3.WrapPanel with Label and TextBoxWrapPanel with Label and TextBox
4.Put rectangles to WrapPanelPut rectangles to WrapPanel
5.Wrap Buttons to WrapPanelWrap Buttons to WrapPanel