Hello
I want to show an Image in one Row in a Datagrid in Silverlight.
I've tried this:
public class DataGridSource { public BitmapImage Image { get; set; } public string Name { get; set; } public string Type { get; set; } public string Data { get; set; } } And then:
List source = new List(); DataGridSource dataGridSource = new DataGridSource(); dataGridSource.Img = new BitmapImage(new Uri("Image/table.png", UriKind.Relative)); dataGridSource.Name = "Test" dataGridSource.Type = "Typ" dataGridSource.Data = "Data"; source.Add(dataGridSource);
This is working for the string-values, but I dont get an Image... No error message though...
|