WPF M-V-VM: Get selected items from a ListCollectionView?

后端 未结 9 1244
暖寄归人
暖寄归人 2020-12-09 17:33

I\'ve got a WPF app using the Model-View-ViewModel pattern.
In my ViewModel I\'ve got a ListCollectionView to keep a list of items.
This ListCollectionView is bound

9条回答
  •  爱一瞬间的悲伤
    2020-12-09 18:19

    The solution of Drew Marsh works very well, I recommend it. And I have another solution !

    Model View ViewModel is a Passive View, you can also use a Presentation Model to access some datas of your presentation without being coupled with WPF (this pattern is used in the Stocktrader example of PRISM).

提交回复
热议问题