Forum Cross Platform with Xamarin

Is it possible use ActionBar and binding?

I want to show a progress bar inside the action bar?

Specially to show it on async tasks. Is it posible, can i have access to binding ?

Please help me

sorry for my bad english

Answers

  • SreeeeSreeee INMember ✭✭✭✭✭

    Are you asking for progress dialog? If yes use acr userdialoges.
    https://github.com/aritchie/userdialogs
    Install plugin and complete the initialization in mainactivity :

    For showing userdialoge use : UserDialogs.Instance.ShowLoading("loading");
    For hiding userdialoge use : UserDialogs.Instance.HideLoading();

  • AllanRitchieAllanRitchie CAInsider, University ✭✭✭

    Don't use Show/HideLoading at all. Use

    using (UserDialogs.Instance.Loading("message")) {
    // do something await/async here
    }

    this way, if something throws an exception, the window is automatically cleaned up

Sign In or Register to comment.