To answer question 1, why aren't you using the MVVM light class "Messenger".
In your opinion, you register to listen to the message as follows:
Messenger.Default.Register<bool>(this, "MessageId", DoSomething);
Where DoSomething is a method that takes a boolean parameter (for example).
Then, to send a message from your view model, follow these steps:
Messenger.Default.Send(false, "MessageId");
Hope this helps :) You need to add this to your needs:
using GalaSoft.MvvmLight.Messaging;
source
share