MVVM- View Model-View Model Communications

后端 未结 4 621
我在风中等你
我在风中等你 2020-12-14 03:37

How do I go about having two view models communicate with one another using MVVM Light. I know how to use the messenger class and register etc.. Here is my Scenario

4条回答
  •  情深已故
    2020-12-14 04:23

    I second Nigel's suggestion of using the Mediator, take a look at Josh Smith's blog and his implementation of this:

    http://joshsmithonwpf.wordpress.com/?s=mediator

    At the bottom you can download the Mediator Prototype and Demo, just remember to rename it from .doc to a .zip.

    Hope this helps...

提交回复
热议问题