I am able to use an ItemTemplate within an ItemsControl to render items in a specific format. However, if one of the items within the ItemsControl happens to be, say, a Tex
I'm just speculating here, but I would bet that it's behavior that lives inside of the ItemContainerGenerator
. I'd bet that the ItemContainerGenerator
looks at an item, and if it's a UIElement
it says, "cool, the item container's been generated, I'll just return it" and if it's not, it says, "I'd better generate a container for this item. Where's the DataTemplate
?"