Showing items as images in a WPF ListView
- by Joan Venge
So I have binded a List to a ListView where the List has items of type Album, where it has lots of properties including .Cover, which I is an image on disk. Well since I don't know what type of image is needed and how they have to be loaded (I only know using Image types for Winforms), I don't know the type yet.
Can someone show or post me a quick sample where it shows this sort of items being shown as images of a certain fixed size using their .Cover property?
In essence this would show:
What type .Cover should be
How to open images from disk for WFP (assuming it's different than Winforms image loading)
How to show them on a ListView as images of a certain fixed size, scaling the images if necessary