How do I have dynamic elements in a XAML WPF window
<p>I have an MVVM WPF application where I display cards for a card game. I am just displaying them on the screen, 4 cards to a row for however many cards are in an observable collection. However, the cards are all different types that all inherit from one base class. Each card type has it's own substantially different view as a user control. So, from my experience, I understand that I can bind the ItemSource property to my observable collection, but how can I specify to use certain user controls based off of the type of the item from my ItemSource? I theorized that I could just load all the user controls for each card and have the visibility of each control turned on or off in a converter based on the card type, but that sounds EXTREMELY inefficient to me. Anyone have any idea?</p>