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 WPF (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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…