views:

93

answers:

1

Is it possible to have a ListBox with a Data Template that changes depending on certain properties of the ItemsSource? For instance maybe you want a list with a variety of items such as images, video, custom panels, etc. Was hoping it could behave like some sort of factory.

Any ideas how this would work?

+3  A: 

In WPF land you'd use a DataTemplateSelector, which unfortunately doesn't exist in Silverlight, but there are several articles, like this one, around showing how to put something similar together.

Steven Robbins