Question

I have a collection of string.

I want to create an image out of each of the strings using a converter.

I tried binding the collection to a ContentPresenter, but I don't know what do to when binding to a collection since I don't know how many items are in the collection.

I don't want to put it in a container such as ListBox, I want the images to be in an existing Grid...

Thanks.

Was it helpful?

Solution

Place images in ItemsControl and define ItemsPanel template to layout images as u like.

Read this article for details.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top