如何将多个不同类型的集合绑定到ItemsControl的ItemsSource?
使用单个绑定工作正常:
<ItemsControl ItemsSource="{Binding Foo}" />
Run Code Online (Sandbox Code Playgroud)
但是当我尝试使用CompositeCollection时,Foo不显示来自的项目:
<ItemsControl>
<ItemsControl.ItemsSource>
<CompositeCollection>
<CollectionContainer Collection="{Binding Foo}" />
</CompositeCollection>
</ItemsControl.ItemsSource>
</ItemsControl>
Run Code Online (Sandbox Code Playgroud)