Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

MVVM - Collections of VMs

$
0
0

I have a rather typical scenario, i.e. a model A that has a collection of models B. I also have a VM A and VM B for the two models. The question is, how do I expose the collections of VM Bs in VM A. I did a lot of googling and the best post I found was this: https://stackoverflow.com/questions/15830008/mvvm-and-collections-of-vms That looks pretty interesting but how do you actually use this, in particular the IViewModelProvider that needs to be passed to the constructor.

I am also interested in any other suggestions how to implement this.

 

Viewing all articles
Browse latest Browse all 18858


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>