The ViewCell itself is just a regular Xamarin.Forms ViewCell with some stacklayout and labels in it. I need the OnBindingContextChanged method because these viewcell are dynamic and I have to take actions depending on the values of the binded object.

Any ideas why the OnBindingContextChanged method in the code behind of the ViewCell isn't called?

In Xamarin Forms ListView, ViewCell has been internally handled to raise the OnBindingContextChanged event and override method whenever the binding context of item is changed. But in SfListView, we have updated the binding context of the ListViewItem only and it raises the View’s bindingcontext event if loaded in ViewCellas like below code example in which you can dynamically modify the data for the item.

Code Example[C#]:

public IncomingViewCell()

{

InitializeComponent();

this.View.BindingContextChanged += View_BindingContextChanged;

}

privatevoid View_BindingContextChanged(object sender, EventArgs e)

{

//Modify the data here

var grid = sender asGrid;

}

For your reference, we have attached the sample and you can download it from the below link.