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

后端 未结 9 1268
暖寄归人
暖寄归人 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:03

    Here is another variant of the View-Model-ViewModel Pattern where the ViewModel has access to the view through an IView interface.

    I encountered quite a lot scenarios where you can't use WPF binding and then you need a way in code to synchronize the state between the View and the ViewModel.

    How this can be done is shown here:

    WPF Application Framework (WAF)

提交回复
热议问题