Hi,
I'm trying to add an image for the label in the header for a field like the following:
<xam:UnboundField Name="HasAttachment"
DataType="{x:Type system:Int32}" BindingPath="HasAttachment"
Column="9" Row="0" RowSpan="2">
<xam:Field.Settings>
<xam:FieldSettings AllowHiding="Never" CellValuePresenterStyle="{StaticResource HasAttachmentCellStyle}" CellMaxWidth="35" LabelHeight="0"/>
</xam:Field.Settings>
<xam:UnboundField.Label>
<Image Source="../Resources/HasAttachment.png" Width="20" Height="20" />
</xam:UnboundField.Label>
</xam:UnboundField>
The problem is:
1) some images for some fields worked, and another fields throw this exception:
Specified element is already the logical child of another element. Disconnect it first.
2) I removed these fields which throw the exception and kept the only which work, but the export to excel doesn't work now.
Any help !!!
Thanks in advance
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through your post it seems like that it is a normal behavior and you are not able to the image from the LabelPresenter in an Excel sheet.
Feel free to write me if you have further questions.