Hi, I'm trying to add an image in the header of one column of my Xdg.
How could I do ?
Currently, I tried that, but that crashes the component when I close the view :
<igDP:Field Name="ABloquerElec" Width="25"> <igDP:Field.Label> <Image Source="/Images/network48.png" Width="16" Height="16" /> </igDP:Field.Label> <igDP:Field.Settings> <igDP:FieldSettings CellValuePresenterStyle="{StaticResource BrtABloquerFieldStyle}" /> </igDP:Field.Settings> </igDP:Field>
Hello,
I have been looking into your question and I have achieved the desired functionality using the following code :
<igDP:Field Label="Make" Name="Make">
<igDP:Field.Settings>
<igDP:FieldSettings >
<igDP:FieldSettings.LabelPresenterStyle>
<Style TargetType="{x:Type igDP:LabelPresenter}">
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding }"/>
<Image Height="15" Source="iconSmallFacebook.gif"/>
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
</igDP:FieldSettings.LabelPresenterStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
If you need any further assistance on this matter, feel free to ask.
Hi, thanks a lot, that works fine.