We're trying to implement a DisplayAlert bridge between our ViewModel and View by using the MessagingCenter. We wanna pass the title and the message as parameters to the message.
We tried this, which does not work. This is probably an easy one, but it's not explicit (enough for us) in the documentation, there's just an example with 1 string parameter.
MessagingCenter.Subscribe<MainPage, string, string> (this, "DisplayAlert", (sender, title, message) => {
DisplayAlert(title, message, "Ok");
});