I have a UserControl
which I\'m using to display a list of UIElement
s. The control consists of a single ItemsControl
with it\'s
Robert Macnee nailed the reason on the head. His solution involves using the control template which might be overkill for a given scenario. Alternatively, use a ListBox
- set the ItemContainerStyle
to a new Style for ListBoxItem
, and in that style, set the ContentTemplate
to the DataTemplate
that you wanted to use in the ListBox
ItemTemplate
.