I am creating a cross platform app on xamarin.forms.
I'm using a plugin to display a popup window.
However, it seems like the await
key is not working since the execution continues before the task is completed.
Besided that, if the button to display a popup is clicked fast many times consecutively, the popup will be displayed this many times clicked instead of displaying once and block all the rest.
I have a command attached to a button. Whenever the button is clicked, the command property is fired corectly but the await
seems to have no effect.
public ICommand {
get => new Command(async () =>
{
if (ObjectivosDoMes.Count < 3)
await PopupNavigation.Instance.PushAsync(new NovoObjectivoDoMes(ObjectivosDoMes), true);
PodeAdicionarObjMes = ObjectivosDoMes.Count < 3 ? true : false;
});
}
I would like to the code after popup being displayed to be execute just after the popup is closed. This is the library i am using to display popup : https://github.com/rotorgames/Rg.Plugins.Popup