private void UpdateLabelStyle(UILabel label, LabelCellStyle cellStyle) { label.BackgroundColor = cellStyle.BackgroundColor; label.Font = cellStyle.Font; label.TextColor = cellStyle.TextColor; label.TextAlignment = cellStyle.TextAlignment; }
public void SetStyle(LabelCellStyle cellStyle) { _cellStyle = cellStyle; BackgroundColor = _cellStyle.BackgroundColor; UpdateBorderStyle(_cellStyle); UpdateLabelStyle(_label, _cellStyle); }
private void UpdateBorderStyle(LabelCellStyle cellStyle) { if (cellStyle.BorderWidth < 0.1f) { return; } Layer.BorderWidth = cellStyle.BorderWidth; Layer.BorderColor = cellStyle.BorderColor.CGColor; }