I made a code that populate a DataGrid. All working good, but now I want add near the field "name" an image. The link of this image is grabbed by a database. The image is on svg format, for this I'm using the resource svg2xaml.
This line of code return the image:
I use this code for populating the DataGrid:
This is my xaml structure:
How can I add this image through code?
This line of code return the image:
Code:
SvgReader.Load(new MemoryStream(new System.Net.WebClient().DownloadData(reader["crestUrl"].ToString())));
Code:
MainWindow.AppWindow.Squadre_DataGrid.Items.Add(new Teams.Club_Information
{
name = reader["name"].ToString()
}
Code:
<DataGrid>
<DataGrid.Columns>
<DataGridTextColumn Binding="{Binding Path = 'name'}" ClipboardContentBinding="{x:Null}" Header="Codice" Width="*" />
...