+ 2
Where are the images of a imagelist located in WPF (C#) [Solved]
I haven't worked with images for quitte a while. Now I want to make a gallery. Some images will be on disk, some I will get as stream. Back in the days of winforms You made a list Opened the image file and added a TBitmap to a list or collection of images. In WPF however, I do not see those controls anymore, What is the best way of showing images in a WPF application, https://www.wpfsharp.com/2012/10/23/displaying-images-from-a-folder-with-details-in-wpf/ I tried to follow the link above, but could not find out, where the image reside
2 Respostas
+ 3
sneeze I didn't know you have found solution, good job! 👍
If you don't mind please mark the thread as "[SOLVED]" to notify this has been solved 😁
+ 2
Thanks Ipang for requesting a answer for this question.
I did find my way arround.
Using this link I am able to create a image list
https://social.msdn.microsoft.com/Forums/vstudio/en-US/07734153-352e-45d7-917b-5e71d3fb0a14/horizontal-listbox-with-custom-scroll?forum=wpf
Using the image element, I can use source to define a path.
<Image Source={Binding Path} Grid.Row=0 />
The image I do get from streams, I need to save first. After that they I can use them in the same way as the images that are already on the disk. I need to save those images anyway for archiving reasons.