<Window x:Class="DlgListView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Diálogo ListView" Height="300" Width="400">
  <Window.Resources>
    <XmlDataProvider x:Key="xmlAlumnos" Source="datos/alumnos.xml" XPath="alumnos"/>
  </Window.Resources>
  <Grid DataContext="{Binding Source={StaticResource xmlAlumnos}}">
    <ListView Margin="5" Name="lstAlumnos" ItemsSource="{Binding XPath=alumno}">
      <ListView.View>
        <GridView>
          <GridView.Columns>
            <GridViewColumn>
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <Image Source="{Binding XPath=foto}" Height="32" Width="32"/>
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
            <GridViewColumn Header="Nombre" DisplayMemberBinding="{Binding XPath=nombre}" />
            <GridViewColumn Header="Dirección" DisplayMemberBinding="{Binding XPath=direccion}" />
            <GridViewColumn Header="Estudios" DisplayMemberBinding="{Binding XPath=estudios}" />
            <GridViewColumn Header="Beca">
              <GridViewColumn.CellTemplate>
                <DataTemplate>
                  <CheckBox IsChecked="{Binding XPath=beca}" />
                </DataTemplate>
              </GridViewColumn.CellTemplate>
            </GridViewColumn>
          </GridView.Columns>
        </GridView>
      </ListView.View>
    </ListView>
  </Grid>
</Window>
