protected override void OnBindingContextChanged() { if (BindingContext == null) { View = new Xamarin.Forms.BoxView(); } currentView = (BindingContext as Tuple <object, HotUI.View>)?.Item2; //TODO; implement something smart here to re-use the old view if possible. //View builders really are perfect for this. Maybe cell stuff should be wrapped in ViewBuilder if (View is IViewHandler iview) { currentView.ViewHandler = iview; } View = currentView.ToForms(); }
public HotViewCell() { View = new Xamarin.Forms.BoxView(); }