Positioning elements using a Grid
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Grid ShowGridLines="true " > <ColumnDefinition Width="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <Label Grid.Row ="0" Grid.Column ="0" Width="100">Username</Label> <TextBox Grid.Row ="1" Grid.Column ="0" Width="150">username@example.com</TextBox> <Label Grid.Row ="2" Grid.Column ="0" Width="100">Password</Label> <PasswordBox Grid.Row ="3" Grid.Column ="0" Width="150"></PasswordBox> <Button Grid.Row ="4" Grid.Column ="0" Width="100" Content="Submit"/> </Grid> </Page>