Using DockPanel.Dock to position elements
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> <Border BorderBrush="Black" BorderThickness="1 "> <DockPanel> <Border DockPanel.Dock ="Top" BorderBrush="Red" BorderThickness="1 "> <Label>Username Label</Label> </Border> <Border DockPanel.Dock ="Right" BorderBrush="Red" BorderThickness="1 "> <TextBox>username@example.com</TextBox> </Border> <Border DockPanel.Dock ="Left" BorderBrush="Red" BorderThickness="1 "> <Label>Password Label</Label> </Border> <Border DockPanel.Dock="Top" BorderBrush="Red" BorderThickness="1"> <TextBox>This is the password box </TextBox> </Border> <Border DockPanel.Dock ="Bottom" BorderBrush="Red" BorderThickness="1"> <Button Content="Submit"/> </Border> </DockPanel> </Border> </Page>