adding images to my collection in WPF

hi,

Can anyone please tell me how to add an image to my collection.

For Eg:

i have a collection with the details like name, address, phone no.

details.Add(new detail("Nani", "Demp St, IL", "123-456-789")

now i want to add a new column myPic. like

details.Add(new detail("Nani", "Demp St, IL", "123-456-789", myPic)

i have the images in a folder Images. i want to add a picture to each detail.

Thanks in advance

Nani




Answer this question

adding images to my collection in WPF

  • nethervoid

    You need to create another constructor for your detail class and in that constructor, specify that you want another parameter :)

  • adding images to my collection in WPF