Hi Diego,
Thank you for contacting us.
Yes, it is possible to style the internal SfPullToRefresh used inside the SfDataGrid through a ResourceDictionary. The internal pull‑to‑refresh control fully respects the same theme keys used by the standalone SfPullToRefresh component.
You can add the following resources in your ResourceDictionary, and the styles will automatically apply to the SfDataGrid’s pull‑to‑refresh UI:
<syncTheme:SyncfusionThemeResourceDictionary /> <ResourceDictionary> <x:String x:Key="SfPullToRefreshTheme">CommonTheme</x:String> <Color x:Key="SfPullToRefreshProgressBackground">Black</Color> <Color x:Key="SfPullToRefreshProgressColor">White</Color> <x:Double x:Key="SfPullToRefreshProgressThickness">10</x:Double> </ResourceDictionary> |
This approach works for both the standalone control and the internal pull‑to‑refresh used by the SfDataGrid when PullToRefreshEnabled is set.
We have also attached a simple working sample along with an output screenshot to help you verify the behavior at your end.
Please let us know if you have any further questions. We’re happy to assist.
Best Regards,
Muthu Kumar Madasamy.
Attachment:
DataGridSample198155_7595e69f.zip