Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
755
Showing images in xamDataGrid bei Uri
posted

Hi

 

how can I show an image in a grid cell via Uri ?

 

I've a uri which points to an image in the application. The Grid has a ObservableCollection<myEntity> as DataSource.

 

If I set the column of the grid to the uri I see the plain text. Setting the DataType of the Cell to System.Windows.Controls.Image and don't see anymore any column at runtime (I think this indicates a configuration mistake?)

When I change binding to a property of an System.Windows.Image instance everything works fine.

But does would mean that I have to instantiate all images manually and dispose them somewhen later.
What would be the best place to dispose these images?

How do I have to define the column so that the uri is shown ?