FlowDirection of WrapPanel : WrapPanel « Windows Presentation Foundation « C# / C Sharp






FlowDirection of WrapPanel

FlowDirection of WrapPanel
    

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  HorizontalAlignment="Center" VerticalAlignment="Center" Width="170">
<StackPanel>
  <WrapPanel Orientation="Horizontal">
    <Button>One</Button>
    <Button>Two</Button>
    <Button>Three</Button>
  </WrapPanel>
  <WrapPanel Orientation="Horizontal" FlowDirection="RightToLeft">
    <Button>One</Button>
    <Button>Two</Button>
    <Button>Three</Button>
  </WrapPanel>
</StackPanel>
</Page>

   
    
    
    
  








Related examples in the same category

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