Mega Code Archive

 
Categories / VB.Net / WPF
 

Fill DockPanel with Labels and Buttons

<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="186" Width="501">   <DockPanel LastChildFill ="True">     <Label DockPanel.Dock ="Top" Name="lblInstruction" FontSize="15">Enter</Label>     <Label DockPanel.Dock ="Left" Name="lblMake">Make</Label>     <Label DockPanel.Dock ="Right" Name="lblColor">Color</Label>     <Label DockPanel.Dock ="Bottom" Name="lblPetName">Name</Label>     <Button Name="btnOK">OK</Button>   </DockPanel> </Window>