I need using SfPullToRefresh in Content View with C# not XAML. But I try many time it always not show PullnableContent. Please help me.
Thanks you
sfPullToRefresh = new SfPullToRefresh {
TransitionMode = TransitionType.SlideOnTop,
RefreshContentThreshold = 50d,
PullingThreshold = 200d,
ProgressBackgroundColor = Color.White,
VerticalOptions = LayoutOptions.FillAndExpand,
HorizontalOptions = LayoutOptions.FillAndExpand,
};
sfPullToRefresh.Refreshed += Notify_Refreshed;
sfPullToRefresh.Refreshing += Notify_Refreshing;
sfPullToRefresh.Pulling += Notify_Pulling;
DicEditedIsNull = new Dictionary<int, bool>();
layout = new StackLayout
{
Padding = new Thickness(0, 5),
WidthRequest = App.ScreenWidth,
BackgroundColor = Color.Yellow,
HeightRequest = App.ScreenHeight
};
CreateLayout(layout);
sfPullToRefresh.PullableContent = layout;
sfPullToRefresh.PullableContent.BackgroundColor = Color.Gray;
sfPullToRefresh.PullableContent.VerticalOptions = LayoutOptions.FillAndExpand;
sfPullToRefresh.PullableContent.HorizontalOptions = LayoutOptions.FillAndExpand;
sfPullToRefresh.PullableContent.HeightRequest = App.ScreenHeight;
this.Content = sfPullToRefresh;