StackPanel with Label and TextBox : StackPanel « Windows Presentation Foundation « VB.Net
- VB.Net
- Windows Presentation Foundation
- StackPanel
StackPanel with Label and TextBox

<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="313" Width="532">
<StackPanel Background="LightSteelBlue" Orientation ="Horizontal">
<Label Name="lblInstruction" FontSize="15">Information</Label>
<Label Name="lblMake">Make</Label>
<TextBox Name="txtMake"/>
<Label Name="lblColor">Color</Label>
<TextBox Name="txtColor"/>
<Label Name="lblPetName">Name</Label>
<TextBox Name="txtPetName"/>
<Button Name="btnOK">OK</Button>
</StackPanel>
</Window>
Related examples in the same category