<controls:ChildWindow x:Class="ApNavSilverlightSvcAps.Login"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Title="Inicio de sesión" UseLayoutRounding="False">

  <Grid x:Name="LayoutRoot" Margin="5">
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition />
      <ColumnDefinition />
    </Grid.ColumnDefinitions>

    <TextBlock VerticalAlignment="Center" Text="Usuario:"/>
    <TextBox x:Name="txtUsuario" Grid.Column="1" Margin="0,5"/>
    <TextBlock Grid.Row="1" VerticalAlignment="Center" Text="Contraseña:"/>
    <PasswordBox x:Name="txtContraseña" Grid.Row="1" Grid.Column="1" Margin="0,5"/>

    <Button x:Name="CancelButton" Content="Cancelar" Grid.Row="2" Grid.Column="1"
            Width="75" Height="23" Margin="0,12,0,0"
            HorizontalAlignment="Right"
            Click="CancelButton_Click" />
    <Button x:Name="OKButton" Content="Aceptar" Grid.Row="2" Grid.Column="1"
            Width="75" Height="23" Margin="0,12,79,0"
            HorizontalAlignment="Right"
            Click="OKButton_Click" />
  </Grid>
</controls:ChildWindow>