Click here to Skip to main content
15,919,434 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to add text ,images in listview control in wpf

Example as below

Column1 | Column2 | Columns3
raj image + text images

Any help or suggestion for this would be of great help
Posted
Updated 22-Jun-12 11:23am
v2

List View Items have content property which means you can embedd any controls in them and help to select the item....
 
Share this answer
 
Comments
explorerC 25-Jun-12 11:08am    
I want to dynamically bind image to listview items
You are asking a very open question because you are not stating where the images are coming from. There are a number of possibilities: Could be coming from the ViewModel as an image (like from a database), could be a path (or URI), or could be a case where the image is dependent on some other data like the type of record. Here is one link that might help: http://www.netframeworkdev.com/windows-presentation-foundation-wpf/listview--datatemplate--images-29390.shtml[^]
 
Share this answer
 
Comments
explorerC 25-Jun-12 10:17am    
Hi Clifford,
The image is taken from the system using the path(located in application directory).

first column : want to add text
second column : add image + text
third column : image

Please help with some examples if possible

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900