MVVM: How to handle interaction between nested ViewModels?

前端 未结 3 1912
悲&欢浪女
悲&欢浪女 2021-02-02 13:26

I\'m been experimenting with the oft-mentioned MVVM pattern and I\'ve been having a hard time defining clear boundaries in some cases. In my application, I have a dialog that a

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 13:41

    I recently experimented with Unity (Microsoft Enterprise library) to use dependency injection. That might be a route to go when using interfaces that completely define what both viewmodels need to no from each other. MEF would be another option for dependency injection I'm aware of.

    HTH

提交回复
热议问题