WrapPanel with VerticalAlignment : WrapPanel « Windows Presentation Foundation « C# / C Sharp






WrapPanel with VerticalAlignment

WrapPanel with VerticalAlignment
     

<Window x:Class="LayoutPanels.SimpleWrap"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="LayoutPanels" Height="142" Width="431"
    >
  <WrapPanel Margin="3">
    <Button VerticalAlignment="Top">Top Button</Button>
    <Button MinHeight="60">Tall Button 2</Button>
    <Button VerticalAlignment="Bottom">Bottom Button</Button>
    <Button>Stretch Button</Button>
    <Button VerticalAlignment="Center">Centered Button</Button>   
  </WrapPanel>

</Window>

   
    
    
    
    
  








Related examples in the same category

1.Simple WrapPanelSimple WrapPanel
2.FlowDirection of WrapPanelFlowDirection of WrapPanel
3.WrapPanel with BackgroundWrapPanel with Background
4.Vertical WrapPanel WindowVertical WrapPanel Window
5.Set item width for WrapPanelSet item width for WrapPanel
6.Set ItemWidth and ItemHeight for WrapPanelSet ItemWidth and ItemHeight for WrapPanel
7.WrapPanel and Windows ControlsWrapPanel and Windows Controls