0
我已经注册了两个消息与参数发送消息:问题与MVVM光工具包
Messenger.Default.Register<NotificationMessage<DriverEventItem>>(this, NotificationMessageReceived);
Messenger.Default.Register<NotificationMessage>(this,NotificationMessageReceived);
和我有两个方法来处理这样的信息:
private void NotificationMessageReceived(NotificationMessage<DriverEventItem> msg)
{
//something
}
private void NotificationMessageReceived(NotificationMessage msg)
{
//something
}
但这
var nm=new NotificationMessage(this.SelectedShowroomLog.DriverEventItem,"ShowView2");
Messenger.Default.Send(nm);
调用我第二个处理程序。
我应该怎么做才能将此驱动程序正确发送给收件人?