<PageFunction
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib" 
   xmlns:local="clr-namespace:ApNavegacionWeb"
    x:Class="PagFunAgregarPersona"
    x:TypeArguments="local:CPersona"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    mc:Ignorable="d"
    d:DesignHeight="350" d:DesignWidth="525"
    WindowTitle="Página agregar persona">
  <Grid Margin="10">
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="Auto"/>
      <ColumnDefinition Width="*" />
    </Grid.ColumnDefinitions>

    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition />
      <RowDefinition Height="Auto" />
    </Grid.RowDefinitions>

    <Grid.Background>
      <ImageBrush ImageSource="Imagenes/telefono.jpg"/>
    </Grid.Background>

    <TextBlock Grid.Row="0" Grid.Column="0" Text="Foto: "
               Style="{StaticResource EstiloTextBlock}"/>
    <TextBox Name="ctFoto"  Grid.Row="0" Grid.Column="1" 
             Style="{StaticResource EstiloTextBox}"
             Text="{Binding Path=Foto}"/>
    <TextBlock Grid.Row="1" Grid.Column="0" Text="Nombre: "
               Style="{StaticResource EstiloTextBlock}"/>
    <TextBox Name="ctNombre" Grid.Row="1" Grid.Column="1"
             Style="{StaticResource EstiloTextBox}"
             Text="{Binding Path=Nombre}"/>
    <TextBlock Grid.Row="2" Grid.Column="0" Text="Dirección: "
               Style="{StaticResource EstiloTextBlock}"/>
    <TextBox Name="ctDireccion" Grid.Row="2" Grid.Column="1"
             Style="{StaticResource EstiloTextBox}"
             Text="{Binding Path=Direccion}"/>
    <TextBlock Grid.Row="3" Grid.Column="0" Text="Teléfono: "
               Style="{StaticResource EstiloTextBlock}"/>
    <TextBox Name="ctTelefono" Grid.Row="3" Grid.Column="1"
             Style="{StaticResource EstiloTextBox}"
             Text="{Binding Path=Telefono}"/>
    <TextBlock Grid.Row="4" Grid.Column="0" Text="Móvil: "
               Style="{StaticResource EstiloTextBlock}"/>
    <CheckBox Name="cvEsMovil" Grid.Row="4" Grid.Column="1"
              Style="{StaticResource EstiloControl}"
              IsChecked="{Binding Path=EsMovil}"/>
    <WrapPanel Grid.Row="5" Grid.ColumnSpan="2" HorizontalAlignment="Right">
      <Button Name="btAceptar" Content="Aceptar"
              Style="{StaticResource EstiloButton}" Click="btAceptar_Click" />
      <Button Name="btCancelar" Content="Cancelar"
              Style="{StaticResource EstiloButton}" Click="btCancelar_Click" />
    </WrapPanel>
  </Grid>
</PageFunction>
