jamesmontemagno / Xamarin.Forms-PullToRefreshLayout

Pull To Refresh a ScrollView or ListView in Xamarin.Forms
218 stars 49 forks source link

RefreshCommand not called #77

Closed pongo1996 closed 4 years ago

pongo1996 commented 4 years ago

XAML

... **CS** bool _isBusy; public bool IsBusy { get { return _isBusy; } set { _isBusy = value; OnPropertyChanged(nameof(IsBusy)); } } private async void PopulateList() { await DisplayAlert("asd", "asd", "adf"); IsBusy = true; a = 67; IsBusy = false; } public Command RefreshCommand { get { return new Command(() => { PopulateList(); }); } } I call **PullToRefreshLayoutRenderer.Init();** in Project.Android in OnCreate.
jamesmontemagno commented 4 years ago

Please use the RefreshView as this is officially deprecated now https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/refreshview