Hi
I have a DomainView that allows you to select an Entity in my domain. The Entity is displayed in an EntityView within the DomainView.
My question is what should the 'DomainViewModel' property be that the EntityView binds to?
- The Entity, with the View itself wrapping it up in a EntityViewModel and it binds to that?
- The Entity, using a Converter on the binding to convert between the Entity and EntityViewModel?
- An EntityViewModel, created by the DomainViewModel?
All would work, I just wondered what would be the 'MVVM-way'? My preference would be for one of the last two.
Lee