How to display image in listbox (WPF with .xml)
hey... anyone, can you help me. I just learn about WPF, here I make a listbox which one it will display an image. I use xml data binding, but in listbox, my image doesn't appear, but there's display a path of address source of image.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Jan 18, 2010, 8:14 PM EST
Link-1
Link-2
more info
yuri pon10 reputationPosted Jan 19, 2010, 9:49 PM EST
can you give a sample how to use data binding where on data.xml describe :
description of data and image.
how to get the image in "Listbox or Image", and description on stackpanel -->> textblock. Thanks a lot..:D
Martin Cook46 reputationPosted Feb 10, 2010, 2:03 AM EST
Not sure if I fully understand but it sounds like you need to use a DataTemplate for the ItemTemplate of your listbox and in that template utilise an Image and set the binding appropriately.
Like this: -
Cheers,
Martin