<Window x:Class="DataGrid.DataGridTemplCol"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:vm="clr-namespace:DataGrid"
        Title="DataGrid" Height="300" Width="579">
    <Window.DataContext>
        <vm:Employees/>
    </Window.DataContext>
    <DataGrid ItemsSource="{Binding}" AutoGenerateColumns="False" Margin="5,45,5,5">
        <DataGrid.Columns>
            <DataGridTextColumn Header="Imię" Binding="{Binding Path=Name}" />
            <DataGridTextColumn Header="Nazwisko" Binding="{Binding Path=Surname}" />
            <DataGridTextColumn Header="Stanowisko" Binding="{Binding Path=Position}" />
            <DataGridTextColumn Header="E-mail" Binding="{Binding Path=Email}" />
            <DataGridCheckBoxColumn Header="Obecny" IsReadOnly="True" Binding="{Binding Path=IsPresent}" />
            <DataGridTemplateColumn Header="Zdjęcie" MaxWidth="40" IsReadOnly="True">
                <DataGridTemplateColumn.CellTemplate>
                    <DataTemplate>
                        <Image Source="{Binding Path=Picture}" />
                    </DataTemplate>
                </DataGridTemplateColumn.CellTemplate>
            </DataGridTemplateColumn>
        </DataGrid.Columns>
    </DataGrid>
</Window>
