Using StackPanel to group elements for absolute positioning
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Canvas Margin="20" HorizontalAlignment="Left" VerticalAlignment="Top"> <StackPanel Orientation="Horizontal"> <Label HorizontalAlignment="Left" Width="100">Username</Label> <TextBox Margin="0 0 0 10" Width="150">username@example.com</TextBox> </StackPanel> <StackPanel Orientation="Horizontal" Canvas.Top="50"> <Label HorizontalAlignment="Left" Width="100">Password</Label> <PasswordBox Margin="0 0 0 10" Width="150"></PasswordBox> </StackPanel> <Button Canvas.Top="150" Margin="0 0 0 10" Content="Submit" /> </Canvas> </Page>