I have a button with an
await this.Navigation.PushModalAsync
The command runs on click. I want to show the ActivityIndicator on a press, this is my button clicked command:
async void ButtonClicked(object sender, EventArgs e)
{
actCentros.IsRunning = true;
await this.Navigation.PushModalAsync(...);
actCentros.IsRunning = false;
}
This takes about 1 second to appear. Without the PushModalAsync
it appears on click.
Why does it happen?