For my project i need a scatterview but let's call it a listbox for people who don't work with the surface sdk :) , and it's bound to an observablecollection of objects in my viewmodel. Depending the kind of object, i use a different datatemplate (images, video's,...)
The container for these items is by default a listboxitem.
But there is a special object where i need more than a normal listboxitem as container, so i created my customlistboxcontainer. Here if found how to use that container:
Have a databound WPF Listbox generate subclassed ListboxItems
but this is not enough. I need to check at runtime what item is added to the collection, and choose the correct container for it (listboxitem, customlistboxitem). I can't seem to get is work.
Has anybody some experienxe with this?
Thx,
Bjorn