<DataGrid Margin="0,23,0,0" AutoGenerateColumns="False" EnableRowVirtualization="True" ItemsSource="{Binding}" Name="grdPeople" VerticalContentAlignment="Center" IsReadOnly="True" DataContext="{Binding}"> <DataGrid.Columns> <DataGridTextColumn Binding="{Binding Path=Name}" Header="Name" Width="Auto" ></DataGridTextColumn> <DataGridTextColumn Binding="{Binding Path=Job}" Header="Job" Width="Auto"></DataGridTextColumn> <DataGridTemplateColumn Header="Picture" Width="45" > <DataGridTemplateColumn.CellTemplate > <DataTemplate > <Image Source="{Binding Path=Picture}" Width="30" Height="30" Stretch="Uniform"> </Image> </DataTemplate> </DataGridTemplateColumn.CellTemplate> </DataGridTemplateColumn> </DataGrid.Columns> </DataGrid>
DataGridRawSelected
System.EventArgs
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)