In our WPF application, we have a screen where we display a grid, the column's header right now is a Text, I'm supposed to add an image beside the text. This is the XAML code,
<Custom:DataGrid.Columns>
<Custom:DataGridTemplateColumn Header="{Binding EmailIDHeader, Source={StaticResource LiteralDictionary}}" Width = "0.1*" CellTemplate="{StaticResource EmailIDTemplate}" SortMemberPath="EmailID"/>
</Custom:DataGrid.Columns>
<DataTemplate x:Key="EmailIDTemplate">
<Grid MinWidth="10" Margin="5,0,5,0">
<TextBlock HorizontalAlignment="Left" Text="{Binding customerItem.EmailID}" Margin="0,0,3,0"/>
</Grid>
EMailIDHeader will load the Text value for the Header, I have to add an image beside it. How do I achieve this? I tried the solution given here. But this just shows me an empty header column.