WPF ContentPresenter bound to collection
I have a rowset.
I want to create an image from each line using a converter.
I tried to bind the collection to ContentPresenter
, but I don't know what to do when binding to the collection, since I don't know how many items are in the collection.
I don't want to put it in a container, for example ListBox
I want the images to be in an existing one Grid
...
Thank.
+2
source to share
1 answer
Place the images in an ItemsControl and define the ItemsPanel template for the image layout as u.
Read this article for more details .
+2
source to share