public override UITableViewCell GetCell(Cell element, UITableViewCell reusableCell, UITableView tv) { var nativeView = base.GetCell(element, reusableCell, tv); CellMonitor.Monitor(element, nativeView); return(nativeView); }
public static void Monitor(Cell element, UITableViewCell nativeView) { var monitor = GetCellMonitor(element); if (monitor == null || !monitor.IsAlive) { monitor = new CellMonitor(element, nativeView); } SetCellMonitor(element, monitor); }
public static void SetCellMonitor(BindableObject bindableObject, CellMonitor cellMonitor) => bindableObject.SetValue(CellMonitorProperty, cellMonitor);