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.
Martin CookPosted Feb 10, 2010, 7:03 AM
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
yuri ponPosted Jan 20, 2010, 2:49 AM
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
Lalit MPosted Jan 19, 2010, 1:14 AM
Link-1
Link-2
more info