Skip to content

Instantly share code, notes, and snippets.

@icalderond
Created May 9, 2019 15:00
Show Gist options
  • Save icalderond/47f16d65892935831c4b78d9f38bc1c0 to your computer and use it in GitHub Desktop.
Save icalderond/47f16d65892935831c4b78d9f38bc1c0 to your computer and use it in GitHub Desktop.
Usando Messaging Center Xamarin Forms
MessagingCenter.Subscribe<MainMenuViewModel, int>(this, "ChangeCounter", (sender, args) => Counter = args);
//MainMenuViewModel.cs
MessagingCenter.Send(this, "ChangeCounter", configApp.CounterMessage);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment