Whenever I want to open a new window from a View model, normally I am using messenger . But now I want to open a new window from a view model and pass an object from calling view model to called view model . How can I implement this? In my viewmodelbase class currently I am having following methods.
public void SendNotificationMessage(string notification)
{
Messenger.Default.Send<NotificationMessage>(new NotificationMessage(notification));
}
public void SendNotificationMessageAction(string notification, Action<object> callback)
{
var message = new NotificationMessageAction<object>(notification, callback);
Messenger.Default.Send(message);
}
Please help me