public void UpdateCell (ExtendedTextCell extendedTextCell) { this.extendedTextCell = extendedTextCell; ContentView.BackgroundColor = extendedTextCell.BackgroundColor.ToUIColor (); leftTextUILabel.UpdateFromFormsControl (extendedTextCell.LeftText, extendedTextCell.LeftTextAlignment, extendedTextCell.LeftTextColor, extendedTextCell.LeftTextFont); if (extendedTextCell.LeftDetail != null) leftDetailUILabel.UpdateFromFormsControl(extendedTextCell.LeftDetail, extendedTextCell.LeftDetailAlignment, extendedTextCell.LeftDetailColor, extendedTextCell.LeftDetailFont); rightTextUILabel.UpdateFromFormsControl (extendedTextCell.RightText, extendedTextCell.RightTextAlignment, extendedTextCell.RightTextColor, extendedTextCell.RightTextFont); if(extendedTextCell.RightDetail != null) rightDetailUILabel.UpdateFromFormsControl (extendedTextCell.RightDetail, extendedTextCell.RightDetailAlignment, extendedTextCell.RightDetailColor, extendedTextCell.RightDetailFont); }
public NativeiOSCell (NSString cellId, ExtendedTextCell extendedTextCell) : base (UITableViewCellStyle.Default, cellId) { this.extendedTextCell = extendedTextCell; SelectionStyle = UITableViewCellSelectionStyle.Default; leftTextUILabel = new UILabel (); rightTextUILabel = new UILabel (); ContentView.Add (leftTextUILabel); ContentView.Add (rightTextUILabel); if (extendedTextCell.LeftDetail != null || extendedTextCell.RightDetail != null) { leftDetailUILabel = new UILabel(); rightDetailUILabel = new UILabel(); ContentView.Add (leftDetailUILabel); ContentView.Add (rightDetailUILabel); } }