Pom*_*oma 5 .net c# data-binding wpf
我有一些公开资料的ObservableCollection<MyData>资源。现在,我想绑定ListBox.ItemsSource到所有它们,并支持CollectionChanged通知,排序和过滤。怎么做?CompositeCollection不支持过滤。
您可以一起使用 CompositeCollection 和 CollectionViewSource。使用 CompositeCollection 组合所有集合,然后从该 CompositeCollection 创建集合视图源。您可以在 CollectionViewSource 中使用过滤器属性
在这里寻找样品
如何使用 CollectionView 功能处理 CompositeCollection?