Changes

Mobile XAML

735 bytes added, 16 September
/* Issues with SfPullToRefresh in combination with SfListView in MAUI */ Update Issues with SfPullToRefresh in MAUI
[[Category:Xamarin|Xamarin XAML]]
=== Issues with SfPullToRefresh in combination with SfListView in MAUI ===
Due to a third-party issue, problems may occur on MAUI for Android when using the SfPullToRefresh control in combination with the SfListViewExt. This can result in e.g. navigation or task interaction sometimes requiring multiple clicks.
In general, and due to more issues, it's not recommended to use the SfPullToRefresh control.
In our Maui standard client, the PullToRefresh control has been replaced by a Refresh button in the Context Menu.
If you still decide to use SfPullToRefresh, there are a few points to consider:
As a workaround, we recommend replacing the ==== Avoid multiple SfPullToRefresh control with a custom Refresh button controls ====To prevent an issue that executes causes the RefreshCommandapp to freeze, for example directly avoid placing more than one SfPullToRefresh controls as siblings in the UBIKNavigationBar or anywhere a xaml hierarchy. If switching between contents in a SfPullToRefresh control is necessary use separate DataTemplates for the UIcontents and use e.The CommandParameter specifies whether the update expiry should be ignoredg. We highly recommend setting it a DataTrigger to True, otherwise, there is no guarantee that set one of them as the refresh will be executed properlyControlTemplate of a ContentControl inside the SfPullToRefresh control.Below is For an example of such a button, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_multiple_SfPullToRefresh_controls|this link]].
<syntaxhighlight lang="xml">=== Avoid using SyncFusion ListViews directly in SfPullToRefresh controls ====<!-- Refresh --><Button To prevent an issue on some Android devices that can cause some items in a SfListViewExt to be rendered incorrectly or not at all after triggering a PullToRefresh, avoid placing a SfListViewExt directly in a SfPullToRefresh control.Instead, wrap the ListView in a DataTemplate and use it in a ContentControl as a child of the SfPullToRefresh control.For an example, refer to [[HowTo:Convert_Xamarin_XAMLs_to_Maui#Avoid_using_SyncFusion_ListViews_directly_in_SfPullToRefresh_controls|this link]]. Command="{Binding RefreshCommand}" CommandParameter="True" IsVisible="{Binding CanExecuteRefreshCommand}" /></syntaxhighlight>
[[Category:Client|Xamarin XAML]]
561
edits