Hi Dave,
We would like to let you know that SfListView is implemented completely based on Virtualization and Item recycling concept by default. So it creates elements only which are in the view on initial loading and while scrolling, we have recycled the existing elements by updating only the BindingContext to provide better performance on scrolling.
So you can achieve your requirement by hooking the BindingContextChanged event for the View in your custom ViewCell and perform the necessary actions as like below code example.
Code Example[C#]:
|
public partial class MyCellDataTemplate: ViewCell
{
public TestViewCell()
{
InitializeComponent();
this.View.BindingContextChanged += View_BindingContextChanged;
}
private void View_BindingContextChanged(object sender, EventArgs e)
{
//custom action here
}
} |
Please let us know if you require further assistance.
Regards,
G.Muthu kumaran.