views:

568

answers:

1

Hi

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.

+1  A: 

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

Read this article for details.

gimalay
This is exactly what I wanted to do.Thank you!
Tsury