Как связать несколько коллекций разных типов с ItemsSource элемента ItemsControl?
Использование единственного связывания отлично работает:
<ItemsControl ItemsSource="{Binding Foo}" />
Но когда я пытаюсь создать CompositeCollection, элементы из Foo
не отображаются:
<ItemsControl>
<ItemsControl.ItemsSource>
<CompositeCollection>
<CollectionContainer Collection="{Binding Foo}" />
</CompositeCollection>
</ItemsControl.ItemsSource>
</ItemsControl>