@AlessandroCaliaro Sir ! Do you have any idea of how to achieve this in the custom cell of data template ... Because in one class there's my ListView and in the other there's my CustomCell that's inherit/implements from ViewCell . However how to achieve
label.SetBinding(Label.BackgroundColorProperty, new Binding(".", BindingMode.Default, new isFirstOrLastColorConverter(), MyItemsListView)); in the CustomCell class defined in c#
Answers
Something like (for a Label)
@AlessandroCaliaro Sir ! Do you have any idea of how to achieve this in the custom cell of data template ... Because in one class there's my ListView and in the other there's my CustomCell that's inherit/implements from ViewCell . However how to achieve
label.SetBinding(Label.BackgroundColorProperty, new Binding(".", BindingMode.Default, new isFirstOrLastColorConverter(), MyItemsListView)); in the CustomCell class defined in c#
Or
https://forums.xamarin.com/discussion/84491/how-to-access-the-listview-in-viewcell-c-code-behind#latest