WrapPanel and Windows Controls : WrapPanel « Windows Presentation Foundation « C# / CSharp Tutorial






<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Fun with Panels!" Height="284" Width="323">
  <WrapPanel Background="LightSteelBlue">
    <Label Width="328" Height="27" FontSize="15">Information</Label>
    <Label>A</Label>
    <TextBox Width="193" Height="25"/>
    <Label>B</Label>
    <TextBox Name="txtColor" Width="193" Height="25"/>
    <Label>C</Label>
    <TextBox Width="193" Height="25"/>
    <Button Name="btnOK" Width="80">OK</Button>
  </WrapPanel>
</Window>
WPF Wrap Panel And Windows Controls








24.58.WrapPanel
24.58.1.Simple WrapPanelSimple WrapPanel
24.58.2.FlowDirection of WrapPanelFlowDirection of WrapPanel
24.58.3.WrapPanel with BackgroundWrapPanel with Background
24.58.4.Vertical WrapPanel WindowVertical WrapPanel Window
24.58.5.Set item width for WrapPanelSet item width for WrapPanel
24.58.6.Set ItemWidth and ItemHeight for WrapPanelSet ItemWidth and ItemHeight for WrapPanel
24.58.7.WrapPanel and Windows ControlsWrapPanel and Windows Controls
24.58.8.WrapPanel with VerticalAlignmentWrapPanel with VerticalAlignment
24.58.9.Instantiate and use a WrapPanel element in code