public override void WillUseCell(CBLUITableSource source, UITableViewCell cell, QueryRow row) { if (backgroundColor == null) { var image = UIImage.FromBundle ("item_background"); backgroundColor = UIColor.FromPatternImage (image); } cell.BackgroundColor = backgroundColor; cell.SelectionStyle = UITableViewCellSelectionStyle.Gray; cell.TextLabel.Font = UIFont.FromName ("Helvetica", 18f); cell.TextLabel.BackgroundColor = UIColor.Clear; var props = row.Value as NSDictionary; var isChecked = ((NSNumber)props.ValueForKey ((NSString)RootViewController.CheckboxPropertyName)).BoolValue; cell.TextLabel.TextColor = isChecked ? UIColor.Gray : UIColor.Black; cell.ImageView.Image = UIImage.FromBundle (isChecked ? "list_area___checkbox___checked" : "list_area___checkbox___unchecked"); }
public override void WillUseCell(CBLUITableSource source, UITableViewCell cell, QueryRow row) { if (backgroundColor == null) { var image = UIImage.FromBundle("item_background"); backgroundColor = UIColor.FromPatternImage(image); } cell.BackgroundColor = backgroundColor; cell.SelectionStyle = UITableViewCellSelectionStyle.Gray; cell.TextLabel.Font = UIFont.FromName("Helvetica", 18f); cell.TextLabel.BackgroundColor = UIColor.Clear; var props = row.Value as NSDictionary; var isChecked = ((NSNumber)props.ValueForKey((NSString)RootViewController.CheckboxPropertyName)).BoolValue; cell.TextLabel.TextColor = isChecked ? UIColor.Gray : UIColor.Black; cell.ImageView.Image = UIImage.FromBundle(isChecked ? "list_area___checkbox___checked" : "list_area___checkbox___unchecked"); }
public CouchtableDelegate(RootViewController controller, CBLUITableSource source) { parent = controller; dataSource = source; }