<navigation:Page x:Class="ApRiaServices.LoadOperation"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="LoadOperation">
  <Grid x:Name="LayoutRoot">
    <ScrollViewer x:Name="PageScrollViewer" Style="{StaticResource PageScrollViewerStyle}">

      <StackPanel x:Name="ContentStackPanel" Style="{StaticResource ContentStackPanelStyle}">

        <TextBlock x:Name="HeaderText" Style="{StaticResource HeaderTextStyle}" 
          Text="{Binding Path=Strings.LoadOperationPageTitle,
          Source={StaticResource ApplicationResources}}"/>

        <!-- Lista de alumnos -->
        <TextBlock FontSize="16" Margin="5,10,0,0" Text="Lista de alumnos:"/>
        <sdk:DataGrid Name="dgAlumnos" Margin="5" Height="Auto"
            AutoGenerateColumns="False" IsReadOnly="True"
            SelectionChanged="dgAlumnos_SelectionChanged">
          <sdk:DataGrid.Columns>
            <sdk:DataGridTextColumn Header="ID"
            Binding="{Binding Path=id_alumno}" MinWidth="100"/>
            <sdk:DataGridTextColumn Header="Nombre"
            Binding="{Binding Path=nombre}" MinWidth="260"/>
          </sdk:DataGrid.Columns>
        </sdk:DataGrid>

        <!-- Lista de asignaturas del alumno seleccionado -->
        <TextBlock FontSize="16" Margin="4"
            Text="Lista de asignaturas del alumno seleccionado:"/>
        <sdk:DataGrid Name="dgAsignaturas" Margin="5" Height="Auto"
            AutoGenerateColumns="False" IsReadOnly="True" 
            SelectionChanged="dgAsignaturas_SelectionChanged" >
          <sdk:DataGrid.Columns>
            <sdk:DataGridTextColumn Header="ID"
              Binding="{Binding Path=id_asignatura}" MinWidth="100"/>
            <sdk:DataGridTextColumn Header="Nombre"
              Binding="{Binding Path=nombre}" MinWidth="260"/>
          </sdk:DataGrid.Columns>
        </sdk:DataGrid>

        <!-- Nota del alumno y asignatura seleccionados -->
        <TextBlock FontSize="16" Margin="4"  
             Text="Nota del alumno y asignatura seleccionados:"/>
        <TextBox Name="tbNota" Text="{Binding Path=nota}" Height="25"
             HorizontalAlignment="Center" FontWeight="Bold" />

      </StackPanel>

    </ScrollViewer>
  </Grid>
</navigation:Page>
