Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

PullToRefreshLayout - Refresher does not hide after set IsRefreshing to false

I'm using PullToRefreshLayout with Prism MVVM, I have a bool property in ViewModel to bind for IsRefreshing called IsBusy and when I set IsBusy to false, the refresher still appear on the page.

Answers

  • Narendra.2973Narendra.2973 USMember, University ✭✭

    You can use UI Thread like this

    protected void ShowBusy(string message)
    {
    this.BusyMessage = message;
    Base.BeginInvokeOnMainThread(delegate
    {
    this.IsBusy = true;
    });
    }

        internal void Ready()
        {
            this.BusyMessage = string.Empty;
            Base.BeginInvokeOnMainThread(delegate
                {
                    this.IsBusy = false;
                });         
        }
    
  • ClintStLaurentClintStLaurent USUniversity ✭✭✭✭✭

    Is the binding set to two-way ?

  • VinciusdaCruzMaiaVinciusdaCruzMaia BRMember ✭✭

    @ClintStLaurent I tried this after read your suggestion, but didn't worked.

Sign In or Register to comment.