Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Activity indicator does not show up

$
0
0

When I want to show Activity indicator it does not appear. Actually, the page is frozen and after that display the next page.

Here is my code:

`private async void TapGestureRecognizer_Tapped_1(object sender, EventArgs e)
{
try
{
if (txtNumOrden.Text != null && txtNumOrden.Text != "")
{
actLoading.IsRunning = true;

                EntregasModel entrega = new EntregasModel();
                entrega.shipperID = txtNumOrden.Text.Trim();
                entrega.token = this.cliente.token;
                await Navigation.PushAsync(new DescripcionEntregas(entrega));

                actLoading.IsRunning = false;
                txtNumOrden.Text = string.Empty;
            }
            else
            {
                await DisplayAlert("Error", "Favor de Introducir # de Orden", "cancel");
                txtNumOrden.Focus();
            }
        }
        catch (Exception ex)
        {

        }
    }`

Any ideas? I'll appreciate your help.

Thanks!


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>