Communication between two viewmodels

前端 未结 2 1562
Happy的楠姐
Happy的楠姐 2021-02-06 13:09

I\'m newbie in MVVM design pattern, and I have these viewmodels :

ClassAViewModel

public class ClassAViewModel : INotifyPro         


        
2条回答
  •  别那么骄傲
    2021-02-06 14:01

    A messenger service is a solution. MVVM Light Toolkit has an implementation of this. What you can do with it, is listen to a specific type of message in your viewmodel and handle it through the messenger. http://www.mvvmlight.net/

提交回复
热议问题