Last active
November 11, 2019 14:00
-
-
Save TBertuzzi/232d6fc8fb8aad9db2a00f9d16ab6345 to your computer and use it in GitHub Desktop.
EventAggregator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string _loadingText = "Carregando..."; | |
public string LoadingText | |
{ | |
get { return _loadingText; } | |
set { SetProperty(ref _loadingText, value); } | |
} | |
protected MainViewModel(IEventAggregator ea) | |
{ | |
ea.GetEvent<MessageSentEvent>().Subscribe(MessageReceived); | |
} | |
private void MessageReceived(string parametro) | |
{ | |
var mensagem = parametro; | |
LoadingText = parametro; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment