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.