Migrate from Xamarin SfPullToRefresh to .NET MAUI SfPullToRefresh

17 Jul 20261 minute to read

To make migration easier from Xamarin.Forms SfPullToRefresh to .NET MAUI SfPullToRefresh, we kept most of the APIs from Xamarin SfPullToRefresh in .NET MAUI SfPullToRefresh. However, to maintain the consistency of API naming in .NET MAUI , we renamed some of the APIs.

Namespaces

Xamarin SfPullToRefresh .NET MAUI SfPullToRefresh Description
Syncfusion.SfPullToRefresh.XForms Syncfusion.Maui.PullToRefresh Namespace that contains the SfPullToRefresh class and its supporting types.

Properties

Xamarin SfPullToRefresh .NET MAUI SfPullToRefresh Type Description

ProgressStrokeColor

ProgressColor

Gets or sets the progress stroke color of SfPullToRefresh.

ProgressBackgroundColor

ProgressBackground

Gets or sets the progress background color of SfPullToRefresh.

ProgressStrokeWidth

ProgressThickness

Gets or sets the progress indicator stroke width.

RefreshContentHeight

RefreshViewHeight

Gets or sets the value for the refresh content height.

RefreshContentWidth

RefreshViewWidth

Gets or sets the value for the refresh content width.

RefreshContentThreshold

RefreshViewThreshold

Gets or sets the refresh content threshold value that indicates progress indicator starting position in view.

Enums

Xamarin SfPullToRefresh .NET MAUI SfPullToRefresh Description

TransitionType

PullToRefreshTransitionType

Defines the type of pulling animation to be performed.

Enum Members

The TransitionType (Xamarin) and PullToRefreshTransitionType (.NET MAUI) enums expose the following members, which have been preserved with the same values:

Xamarin member .NET MAUI member Description
SlideOnTop SlideOnTop Slides the content on top of the pull-to-refresh indicator.
PushOnTop PushOnTop Pushes the content down to make room for the pull-to-refresh indicator.