<controls:DataGrid AutoGenerateColumns="False" CanUserResizeColumns="False" IsReadOnly="True" Margin="0,28,0,0" Name="UserListView" VerticalScrollBarVisibility="Auto" UseLayoutRounding="False" HorizontalScrollBarVisibility="Auto" TabIndex="4" FontSize="14" Background="White" Grid.Column="2" Grid.Row="3" HeadersVisibility="Column" SelectedIndex="0" HorizontalGridLinesBrush="#FFC5C5CA" IsTabStop="True" Grid.ColumnSpan="6" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> <controls:DataGrid.Columns > <controls:DataGridTemplateColumn CanUserReorder="False" CanUserResize="False" Header="Name" Width="350" > <controls:DataGridTemplateColumn.CellTemplate > <DataTemplate> <TextBlock> <Run Text="{Binding userPrefix}" /> <Run Text="{Binding userFirstName}" /> <Run Text="{Binding userLastName}" /> </TextBlock> </DataTemplate> </controls:DataGridTemplateColumn.CellTemplate> </controls:DataGridTemplateColumn> <controls:DataGridTextColumn CanUserResize="False" Header="Email" Binding="{Binding userEmail}" Width="300" /> <controls:DataGridTemplateColumn CanUserReorder="False" CanUserResize="False" Header="Phone" Width="250" > <controls:DataGridTemplateColumn.CellTemplate > <DataTemplate> <TextBlock> <Run Text="{Binding userExt}" /> <Run Text="-" /> <Run Text="{Binding userPhone}" /> </TextBlock> </DataTemplate> </controls:DataGridTemplateColumn.CellTemplate> </controls:DataGridTemplateColumn> <controls:DataGridTemplateColumn Tag="Col" Header="Edit"> <controls:DataGridTemplateColumn.CellTemplate > <DataTemplate> <Button Name="UpdateGridRecord"> <Button.Background> <ImageBrush ImageSource="logo.png" /> </Button.Background> </Button> </DataTemplate> </controls:DataGridTemplateColumn.CellTemplate> </controls:DataGridTemplateColumn> </controls:DataGrid.Columns> </controls:DataGrid>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)