I have a class that sends Yuri to change the page after login, but how can I get my new Yuri and my object Can I send "user" to new page ??
Public Static Class Status Update Page {Send Public Static Zero (Uri Uri) {Messenger.Default.Send & lt; Uri & gt; (Uri); } Public Static Zero Register (Object Recipients, Action & Lieutenant; Yuri and Action;) {Messenger.Default. Registrar & lt; Uri & gt; (Recipients, actions); }} thx
All you have to do is messenger editions With Messenger on ViewModel A should be thrown: Messenger.Default.Register (this, action); // It refers to the object that is receiving the message (your view modell in your case)
And wherever you want to send the message, you send the message: Messenger.Default Send ( Yuri);
Hope it helps.
Comments
Post a Comment