将三个不同的ICollectionView绑定到列表框

时间:2022-08-07 23:56:30

I used MVVM and MEF and I created three class that have a ICollectionView.I imported three class into the class that be seted DataContext of View.I want do actions as remove selecteditem and add selecteditem that Commands be declared in three class.I cant bind three IcollectionView to listbox.

我使用了MVVM和MEF,我创建了三个具有ICollectionView.I的类,将三个类导入到View的DataContext类中。我希望执行操作删除selecteditem并添加selectitem,命令在三个类中声明。我不能绑定三个IcollectionView到列表框。

1 个解决方案

#1


0  

You could have a look at the CompositeCollection class to allow multiple collections to be displayed in a single list.

您可以查看CompositeCollection类,以允许多个集合显示在单个列表中。

#1


0  

You could have a look at the CompositeCollection class to allow multiple collections to be displayed in a single list.

您可以查看CompositeCollection类,以允许多个集合显示在单个列表中。