| Start |
|---|
| Simple example Here we will see a simple example of using the MessagingCenter in Xamarin.Forms. First, let's have a look at subscribing to a message.
In the To send a message triggering this functionality, we need to have a page called In our |
| Passing arguments You can also pass arguments with a message to work with. We will use the classed from our previous example and extend them. In the receiving part, right behind the When sending a message, make sure to include the argument value. Also, here you add the type right behind the In this example a simple string is used, but you can also use any other type of (complex) objects. |
| Unsubscribing When you no longer need to receive messages, you can simply unsubscribe. You can do it like this:
When you are supplying arguments, you have to unsubscribe from the complete signature, like this:
|
Read Article
https://develop.horje.com/learn/1434/reference