WrapPanel with Label and TextBox : WrapPanel « Windows Presentation Foundation « VB.Net Tutorial






<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Fun with Panels!" Height="300" Width="300">
  <WrapPanel Background="LightSteelBlue">
    <Label Name="lblInstruction" Width="328" Height="27" FontSize="15">Information</Label>
    <Label Name="lblMake">Make</Label>
    <TextBox Name="txtMake" Width="193" Height="25"/>
    <Label Name="lblColor">Color</Label>
    <TextBox Name="txtColor" Width="193" Height="25"/>
    <Label Name="lblPetName">Name</Label>
    <TextBox Name="txtPetName" Width="193" Height="25"/>
    <Button Name="btnOK" Width="80">OK</Button>
  </WrapPanel>
</Window>
WPF Wrap Panel With Label And Text Box








16.43.WrapPanel
16.43.1.WrapPanel with FlowDirectionWrapPanel with FlowDirection
16.43.2.Arrange UI Elements Into Automatically Wrapping Rows or ColumnsArrange UI Elements Into Automatically Wrapping Rows or Columns
16.43.3.WrapPanel with Label and TextBoxWrapPanel with Label and TextBox
16.43.4.Put rectangles to WrapPanelPut rectangles to WrapPanel
16.43.5.Instantiate and use a WrapPanel elementInstantiate and use a WrapPanel element
16.43.6.Wrap Buttons to WrapPanelWrap Buttons to WrapPanel