0

I'm using messagingcenter to send message from a viewmodel to another viewmodel, the destination content page can be accessed from master page only(by clicking on hamburger icon). message can be send successfully to the previous and next pages but cannot send to pages within master page.Please help..

MessagingCenter.Send<Cart_page_vm>(this, "check_address_id");    

MessagingCenter.Subscribe<Cart_page_vm>(this, "check_address_id", (sender) =>
{
    //  getaddresses();
});
Mihail Duchev
  • 4,691
  • 10
  • 25
  • 32
Vipin Krishna
  • 355
  • 1
  • 4
  • 25
  • 1
    has the class that is subscribing already been instantiated and subscribed BEFORE the message is sent? – Jason Jan 03 '19 at 14:30
  • No. class was not instantiated. That was the issue.Now messege send is working.. Thank you sir..why it is necessary to instantiate? – Vipin Krishna Jan 03 '19 at 14:54

0 Answers0