use image from table

Mar 9, 2012 at 11:18 AM


Is it possible to use an image from datatable and draw it dynamically? And what is the best way to do this (stored link or bytes)?

Mar 16, 2012 at 3:45 PM

I've created a crude InlineTableCellImage that can be bound to a column of image filenames if that's any help?

You should be able to adapt it so it'll take a memory stream from the image column instead of loading from disk.

I really must warn you, as I said before, it is quite crude (I didn't need much more). 

Mar 25, 2012 at 9:24 PM

Thank you for your reply.

I've created a InlineTableCellImage which reads bytes from table and returns an image. This works so far. The next problem i have is the missing 'Image' tag in the xaml template.

I have that

<xrd:InlineTableCellImage PropertyName="Image" />

and need something like

<Image Name="imageDynamic1" Width="5cm" Height="5cm" />

But i don't know how to solve. I have no xaml experience so far.