Hi there,
I'm using syncfusion controls combined with ReactiveUI. Everytime I use the PullToRefresh Control inside ReactiveContentPage or ReactiveContentView it just doesn't work.
You can find the ReactiveContentView class here
https://github.com/reactiveui/ReactiveUI/blob/main/src/ReactiveUI.XamForms/ReactiveContentView.cs
This is a code samples
public partial class MyView : ReactiveView<MyViewModel>
{
public MyView()
{
InitializeComponent();
ViewModel = new MyViewModel();
this.WhenActivated(disposables =>
{
OnInitializeReactiveSubscriptions(disposables);
});
}
private void OnInitializeReactiveSubscriptions(CompositeDisposable disposables)
{
}
}
}
<?xml version="1.0" encoding="UTF-8" ?>
<ru:ReactiveContentView
x:Class="MyApp.App.MyView"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:ru="clr-namespace:ReactiveUI.XamForms;assembly=ReactiveUI.XamForms"
xmlns:syncfusionPulltoRefresh="clr-namespace:Syncfusion.SfPullToRefresh.XForms;assembly=Syncfusion.SfPullToRefresh.XForms"
x:DataType="myApp:MyViewModel"
x:TypeArguments="myApp:MyViewModel">
<syncfusionPulltoRefresh:SfPullToRefresh
x:Name="pullToRefresh"
IsRefreshing="{Binding IsLoading, Mode=OneWay}"
ProgressBackgroundColor="{DynamicResource BoxBackgroundColor}"
ProgressStrokeColor="{DynamicResource PrimaryColor}"
PullingThershold="150"
RefreshCommand="{Binding LoadMeSectionTileGroupsLayoutCommand, Mode=OneWay}"
RefreshCommandParameter="{StaticResource True}"
RefreshContentHeight="40"
RefreshContentWidth="40"
TransitionMode="SlideOnTop"
VerticalOptions="FillAndExpand">
<syncfusionPulltoRefresh:SfPullToRefresh.PullableContent>
<Grid>
<!-- SomeUI -->
</Grid>
</syncfusionPulltoRefresh:SfPullToRefresh.PullableContent>
</syncfusionPulltoRefresh:SfPullToRefresh>
</ru:ReactiveContentView>