Closed jboyda closed 6 years ago
works fine in my sample app...
seeing you provided no code or screenshot i have no idea how you are using it...
My apologies, must have overlooked it. This is the snippet of where it is being called.
BindingContext = new TestViewModel(this);
var sv = new ScrollView()
{
VerticalOptions = LayoutOptions.FillAndExpand,
HorizontalOptions = LayoutOptions.FillAndExpand
};
Label test = new Label()
{
Text = "test"
};
sv.Content = test;
var refreshView = new PullToRefreshLayout
{
VerticalOptions = LayoutOptions.FillAndExpand,
HorizontalOptions = LayoutOptions.FillAndExpand,
Content = sv,
RefreshColor = Color.White,
RefreshBackgroundColor = Color.FromHex("#f8af35")
};
refreshView.SetBinding<TestViewModel>(PullToRefreshLayout.IsRefreshingProperty, vm => vm.IsBusy, BindingMode.OneWay);
refreshView.SetBinding<TestViewModel>(PullToRefreshLayout.RefreshCommandProperty, vm => vm.RefreshCommand);
Content = new StackLayout
{
Spacing = 5,
Children =
{
refreshView
}
};
Add PullToRefreshLayoutRenderer.Init() on your AppDelegate
Pull to Refresh works wonderfully on Android but when deployed to iOS, it does not register. Any thoughts? Am I missing something that needs to be added to the AppDelegate?