<navigation:Page x:Class="SilverlightAccesoColDatos.Home"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 mc:Ignorable="d"
                 d:DesignWidth="640" d:DesignHeight="480"
                 Title="Página principal"
                 Style="{StaticResource PageStyle}">

  <Grid x:Name="LayoutRoot">
    <StackPanel x:Name="ContentStackPanel">
      <TextBlock x:Name="HeaderText" Text="Página principal"
               Style="{StaticResource HeaderTextStyle}"/>
      <TextBlock x:Name="ContentText" Text="Lista de personas"
               Style="{StaticResource ContentTextStyle}"/>

      <sdk:DataGrid Name="dgPersonas" Margin="5" MaxHeight="300"
        AutoGenerateColumns="False"
        ItemsSource="{Binding}">
        <sdk:DataGrid.Columns>
          <sdk:DataGridTextColumn Header="ID"
        Binding="{Binding Path=IdPersona}" MinWidth="40"/>
          <sdk:DataGridTextColumn Header="Nombre"
        Binding="{Binding Path=Nombre}" MinWidth="150"/>
          <sdk:DataGridTextColumn Header="Dirección"
        Binding="{Binding Path=Direccion}" MinWidth="150"/>
          <sdk:DataGridTextColumn Header="Teléfono"
        Binding="{Binding Path=NumTelefono}" MinWidth="150"/>
          <sdk:DataGridTextColumn Header="Observaciones"
        Binding="{Binding Path=Observaciones}" MinWidth="150"/>
        </sdk:DataGrid.Columns>
      </sdk:DataGrid>

    </StackPanel>
  </Grid>

</navigation:Page>
