public static void DataBind(this UITableViewCellCustomPerson tcp, Person p) { // MonoTouch + MonoDevelop generate non-public fields Outlets (Controls) // in *.designer.cs file, so without modification we cannot access fields. // Abandoned! // tcp.labelNameLast.Text = p.NameFirst; // tcp.labelNameLast.Text = p.NameLast; return; }
public static void DataBind(this UITableViewCellCustomGeneric<Person> tcp, Person p) { return; }
// Drawback: custom cell should have controls publicly exposed // Abandoned! void BindCustomCellAndObject (UITableViewCellCustomGeneric<Person> tcp, Person p) { return; }